Skip to content

Commit b20bef4

Browse files
HungNien ChenJiri Kosina
authored andcommitted
HID: i2c-hid: modify quirks for weida's devices
This 'SET_PWR_WAKEUP_DEV' quirk only works for weida's devices with pid 0xC300 & 0xC301. Some weida's devices with other pids also need this quirk now. Use 'HID_ANY_ID' instead of 0xC300 to make all of weida's devices can be fixed on the power on issue. This modification should be safe since devices without power on issue will send the power on command only once. Signed-off-by: HungNien Chen <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 8ccff28 commit b20bef4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ static const struct i2c_hid_quirks {
169169
__u16 idProduct;
170170
__u32 quirks;
171171
} i2c_hid_quirks[] = {
172-
{ USB_VENDOR_ID_WEIDA, USB_DEVICE_ID_WEIDA_8752,
173-
I2C_HID_QUIRK_SET_PWR_WAKEUP_DEV },
174-
{ USB_VENDOR_ID_WEIDA, USB_DEVICE_ID_WEIDA_8755,
172+
{ USB_VENDOR_ID_WEIDA, HID_ANY_ID,
175173
I2C_HID_QUIRK_SET_PWR_WAKEUP_DEV },
176174
{ I2C_VENDOR_ID_HANTICK, I2C_PRODUCT_ID_HANTICK_5288,
177175
I2C_HID_QUIRK_NO_IRQ_AFTER_RESET |

0 commit comments

Comments
 (0)