|
44 | 44 | #include "i2c-hid.h"
|
45 | 45 |
|
46 | 46 | /* quirks to control the device */
|
47 |
| -#define I2C_HID_QUIRK_SET_PWR_WAKEUP_DEV BIT(0) |
48 | 47 | #define I2C_HID_QUIRK_NO_IRQ_AFTER_RESET BIT(1)
|
49 | 48 | #define I2C_HID_QUIRK_BOGUS_IRQ BIT(4)
|
50 | 49 | #define I2C_HID_QUIRK_RESET_ON_RESUME BIT(5)
|
@@ -120,8 +119,6 @@ static const struct i2c_hid_quirks {
|
120 | 119 | __u16 idProduct;
|
121 | 120 | __u32 quirks;
|
122 | 121 | } i2c_hid_quirks[] = {
|
123 |
| - { USB_VENDOR_ID_WEIDA, HID_ANY_ID, |
124 |
| - I2C_HID_QUIRK_SET_PWR_WAKEUP_DEV }, |
125 | 122 | { I2C_VENDOR_ID_HANTICK, I2C_PRODUCT_ID_HANTICK_5288,
|
126 | 123 | I2C_HID_QUIRK_NO_IRQ_AFTER_RESET },
|
127 | 124 | { I2C_VENDOR_ID_ITE, I2C_DEVICE_ID_ITE_VOYO_WINPAD_A15,
|
@@ -395,8 +392,7 @@ static int i2c_hid_set_power(struct i2c_hid *ihid, int power_state)
|
395 | 392 | * The call will get a return value (EREMOTEIO) but device will be
|
396 | 393 | * triggered and activated. After that, it goes like a normal device.
|
397 | 394 | */
|
398 |
| - if (power_state == I2C_HID_PWR_ON && |
399 |
| - ihid->quirks & I2C_HID_QUIRK_SET_PWR_WAKEUP_DEV) { |
| 395 | + if (power_state == I2C_HID_PWR_ON) { |
400 | 396 | ret = i2c_hid_set_power_command(ihid, I2C_HID_PWR_ON);
|
401 | 397 |
|
402 | 398 | /* Device was already activated */
|
|
0 commit comments