Skip to content

Commit

Permalink
HID: i2c-hid: remove unused static declarations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Tissoires authored and Jiri Kosina committed Dec 5, 2012
1 parent fa73864 commit 6bf6c8b
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions drivers/hid/i2c-hid/i2c-hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,17 @@ static const struct i2c_hid_cmd hid_reset_cmd = { I2C_HID_CMD(0x01),
.wait = true };
static const struct i2c_hid_cmd hid_get_report_cmd = { I2C_HID_CMD(0x02) };
static const struct i2c_hid_cmd hid_set_report_cmd = { I2C_HID_CMD(0x03) };
static const struct i2c_hid_cmd hid_get_idle_cmd = { I2C_HID_CMD(0x04) };
static const struct i2c_hid_cmd hid_set_idle_cmd = { I2C_HID_CMD(0x05) };
static const struct i2c_hid_cmd hid_get_protocol_cmd = { I2C_HID_CMD(0x06) };
static const struct i2c_hid_cmd hid_set_protocol_cmd = { I2C_HID_CMD(0x07) };
static const struct i2c_hid_cmd hid_set_power_cmd = { I2C_HID_CMD(0x08) };
/* read/write data register */
static const struct i2c_hid_cmd hid_data_cmd = {
.registerIndex = offsetof(struct i2c_hid_desc, wDataRegister),
.opcode = 0x00,
.length = 2 };
/* write output reports */
static const struct i2c_hid_cmd hid_out_cmd = {
.registerIndex = offsetof(struct i2c_hid_desc,
wOutputRegister),
.opcode = 0x00,
.length = 2 };

/*
* These definitions are not used here, but are defined by the spec.
* Keeping them here for documentation purposes.
*
* static const struct i2c_hid_cmd hid_get_idle_cmd = { I2C_HID_CMD(0x04) };
* static const struct i2c_hid_cmd hid_set_idle_cmd = { I2C_HID_CMD(0x05) };
* static const struct i2c_hid_cmd hid_get_protocol_cmd = { I2C_HID_CMD(0x06) };
* static const struct i2c_hid_cmd hid_set_protocol_cmd = { I2C_HID_CMD(0x07) };
*/

/* The main device structure */
struct i2c_hid {
Expand Down

0 comments on commit 6bf6c8b

Please sign in to comment.