Skip to content

Commit 534ca75

Browse files
superm1Jiri Kosina
authored andcommitted
HID: hid-input: Extend Elan ignore battery quirk to USB
USB Elan devices have the same problem as the I2C ones with a fake battery device showing up. Reviewed-by: Hans de Goede <hansg@kernel.org> Reported-by: André Barata <andretiagob@protonmail.com> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220722 Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 53f731f commit 534ca75

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/hid/hid-input.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,11 @@ static const struct hid_device_id hid_battery_quirks[] = {
399399
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_CHROMEBOOK_TROGDOR_POMPOM),
400400
HID_BATTERY_QUIRK_AVOID_QUERY },
401401
/*
402-
* Elan I2C-HID touchscreens seem to all report a non present battery,
403-
* set HID_BATTERY_QUIRK_IGNORE for all Elan I2C-HID devices.
402+
* Elan HID touchscreens seem to all report a non present battery,
403+
* set HID_BATTERY_QUIRK_IGNORE for all Elan I2C and USB HID devices.
404404
*/
405405
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, HID_ANY_ID), HID_BATTERY_QUIRK_IGNORE },
406+
{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, HID_ANY_ID), HID_BATTERY_QUIRK_IGNORE },
406407
{}
407408
};
408409

0 commit comments

Comments
 (0)