aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/i2c-hid
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>2012-12-04 10:27:47 -0500
committerJiri Kosina <jkosina@suse.cz>2012-12-05 05:02:31 -0500
commit6bf6c8bf2ba6548c38eeaccb735992660c4bbaeb (patch)
tree459ea14725dc5e2aeaebfb38cbd5feb3a3bfa629 /drivers/hid/i2c-hid
parentfa738644e57d5fd54b8c0a4f5a7815972e65ce1a (diff)
HID: i2c-hid: remove unused static declarations
These definitions are not used here, but are defined by the specification. Keeping some of them for documentation purposes. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Reviewed-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/i2c-hid')
-rw-r--r--drivers/hid/i2c-hid/i2c-hid.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index d95e8de6a920..be5126c281c3 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -105,22 +105,17 @@ static const struct i2c_hid_cmd hid_reset_cmd = { I2C_HID_CMD(0x01),
105 .wait = true }; 105 .wait = true };
106static const struct i2c_hid_cmd hid_get_report_cmd = { I2C_HID_CMD(0x02) }; 106static const struct i2c_hid_cmd hid_get_report_cmd = { I2C_HID_CMD(0x02) };
107static const struct i2c_hid_cmd hid_set_report_cmd = { I2C_HID_CMD(0x03) }; 107static const struct i2c_hid_cmd hid_set_report_cmd = { I2C_HID_CMD(0x03) };
108static const struct i2c_hid_cmd hid_get_idle_cmd = { I2C_HID_CMD(0x04) };
109static const struct i2c_hid_cmd hid_set_idle_cmd = { I2C_HID_CMD(0x05) };
110static const struct i2c_hid_cmd hid_get_protocol_cmd = { I2C_HID_CMD(0x06) };
111static const struct i2c_hid_cmd hid_set_protocol_cmd = { I2C_HID_CMD(0x07) };
112static const struct i2c_hid_cmd hid_set_power_cmd = { I2C_HID_CMD(0x08) }; 108static const struct i2c_hid_cmd hid_set_power_cmd = { I2C_HID_CMD(0x08) };
113/* read/write data register */ 109
114static const struct i2c_hid_cmd hid_data_cmd = { 110/*
115 .registerIndex = offsetof(struct i2c_hid_desc, wDataRegister), 111 * These definitions are not used here, but are defined by the spec.
116 .opcode = 0x00, 112 * Keeping them here for documentation purposes.
117 .length = 2 }; 113 *
118/* write output reports */ 114 * static const struct i2c_hid_cmd hid_get_idle_cmd = { I2C_HID_CMD(0x04) };
119static const struct i2c_hid_cmd hid_out_cmd = { 115 * static const struct i2c_hid_cmd hid_set_idle_cmd = { I2C_HID_CMD(0x05) };
120 .registerIndex = offsetof(struct i2c_hid_desc, 116 * static const struct i2c_hid_cmd hid_get_protocol_cmd = { I2C_HID_CMD(0x06) };
121 wOutputRegister), 117 * static const struct i2c_hid_cmd hid_set_protocol_cmd = { I2C_HID_CMD(0x07) };
122 .opcode = 0x00, 118 */
123 .length = 2 };
124 119
125/* The main device structure */ 120/* The main device structure */
126struct i2c_hid { 121struct i2c_hid {