Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 64575ec

Browse files
jwrdegoedegregkh
authored andcommitted
HID: i2c-hid: Renumber I2C_HID_QUIRK_ defines
[ Upstream commit 7d7a252 ] 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]> Stable-dep-of: 26dd6a5 ("HID: i2c-hid: Skip SET_POWER SLEEP for Cirque touchpad on system suspend") Signed-off-by: Sasha Levin <[email protected]>
1 parent e600ee9 commit 64575ec

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)