Message ID | 20231104111743.14668-8-hdegoede@redhat.com |
---|---|
State | Superseded |
Headers | show |
Series | HID: i2c-hid: Rework wait for reset to match Windows | expand |
Hi, On Sat, Nov 4, 2023 at 4:18 AM Hans de Goede <hdegoede@redhat.com> wrote: > > 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. > > Signed-off-by: Hans de Goede <hdegoede@redhat.com> > --- > drivers/hid/i2c-hid/i2c-hid-core.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Douglas Anderson <dianders@chromium.org>
diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index ff2659bf5e57..2a4c8657cc7e 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -44,10 +44,10 @@ #include "i2c-hid.h" /* quirks to control the device */ -#define I2C_HID_QUIRK_BOGUS_IRQ BIT(4) -#define I2C_HID_QUIRK_RESET_ON_RESUME BIT(5) -#define I2C_HID_QUIRK_BAD_INPUT_SIZE BIT(6) -#define I2C_HID_QUIRK_NO_WAKEUP_AFTER_RESET BIT(7) +#define I2C_HID_QUIRK_BOGUS_IRQ BIT(0) +#define I2C_HID_QUIRK_RESET_ON_RESUME BIT(1) +#define I2C_HID_QUIRK_BAD_INPUT_SIZE BIT(2) +#define I2C_HID_QUIRK_NO_WAKEUP_AFTER_RESET BIT(3) /* Command opcodes */ #define I2C_HID_OPCODE_RESET 0x01
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. Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- drivers/hid/i2c-hid/i2c-hid-core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)