Skip to content

Commit b0f0730

Browse files
superm1gregkh
authored andcommitted
HID: hid-input: Extend Elan ignore battery quirk to USB
[ Upstream commit 534ca75 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a8cb796 commit b0f0730

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
@@ -386,10 +386,11 @@ static const struct hid_device_id hid_battery_quirks[] = {
386386
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_CHROMEBOOK_TROGDOR_POMPOM),
387387
HID_BATTERY_QUIRK_AVOID_QUERY },
388388
/*
389-
* Elan I2C-HID touchscreens seem to all report a non present battery,
390-
* set HID_BATTERY_QUIRK_IGNORE for all Elan I2C-HID devices.
389+
* Elan HID touchscreens seem to all report a non present battery,
390+
* set HID_BATTERY_QUIRK_IGNORE for all Elan I2C and USB HID devices.
391391
*/
392392
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, HID_ANY_ID), HID_BATTERY_QUIRK_IGNORE },
393+
{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, HID_ANY_ID), HID_BATTERY_QUIRK_IGNORE },
393394
{}
394395
};
395396

0 commit comments

Comments
 (0)