Skip to content

Commit 7d7a252

Browse files
jwrdegoedeJiri Kosina
authored andcommitted
HID: i2c-hid: Renumber I2C_HID_QUIRK_ defines
The quirks variable and the I2C_HID_QUIRK_ defines are never used / exported outside of the i2c-hid code renumber them to start at BIT(0) again. Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent bd008ac commit 7d7a252

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/hid/i2c-hid/i2c-hid-core.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
#include "i2c-hid.h"
4545

4646
/* quirks to control the device */
47-
#define I2C_HID_QUIRK_NO_IRQ_AFTER_RESET BIT(1)
48-
#define I2C_HID_QUIRK_BOGUS_IRQ BIT(4)
49-
#define I2C_HID_QUIRK_RESET_ON_RESUME BIT(5)
50-
#define I2C_HID_QUIRK_BAD_INPUT_SIZE BIT(6)
51-
#define I2C_HID_QUIRK_NO_WAKEUP_AFTER_RESET BIT(7)
47+
#define I2C_HID_QUIRK_NO_IRQ_AFTER_RESET BIT(0)
48+
#define I2C_HID_QUIRK_BOGUS_IRQ BIT(1)
49+
#define I2C_HID_QUIRK_RESET_ON_RESUME BIT(2)
50+
#define I2C_HID_QUIRK_BAD_INPUT_SIZE BIT(3)
51+
#define I2C_HID_QUIRK_NO_WAKEUP_AFTER_RESET BIT(4)
5252

5353
/* Command opcodes */
5454
#define I2C_HID_OPCODE_RESET 0x01

0 commit comments

Comments
 (0)