Commit 6bf6c8bf authored by Benjamin Tissoires's avatar Benjamin Tissoires Committed by Jiri Kosina

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: default avatarBenjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent fa738644
...@@ -105,22 +105,17 @@ static const struct i2c_hid_cmd hid_reset_cmd = { I2C_HID_CMD(0x01), ...@@ -105,22 +105,17 @@ static const struct i2c_hid_cmd hid_reset_cmd = { I2C_HID_CMD(0x01),
.wait = true }; .wait = true };
static const struct i2c_hid_cmd hid_get_report_cmd = { I2C_HID_CMD(0x02) }; 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_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) }; 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), * These definitions are not used here, but are defined by the spec.
.opcode = 0x00, * Keeping them here for documentation purposes.
.length = 2 }; *
/* write output reports */ * static const struct i2c_hid_cmd hid_get_idle_cmd = { I2C_HID_CMD(0x04) };
static const struct i2c_hid_cmd hid_out_cmd = { * static const struct i2c_hid_cmd hid_set_idle_cmd = { I2C_HID_CMD(0x05) };
.registerIndex = offsetof(struct i2c_hid_desc, * static const struct i2c_hid_cmd hid_get_protocol_cmd = { I2C_HID_CMD(0x06) };
wOutputRegister), * static const struct i2c_hid_cmd hid_set_protocol_cmd = { I2C_HID_CMD(0x07) };
.opcode = 0x00, */
.length = 2 };
/* The main device structure */ /* The main device structure */
struct i2c_hid { struct i2c_hid {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment