Commit 534ca75e authored by Mario Limonciello (AMD)'s avatar Mario Limonciello (AMD) Committed by Jiri Kosina
Browse files

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: default avatarHans de Goede <hansg@kernel.org>
Reported-by: default avatarAndré Barata <andretiagob@protonmail.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220722


Signed-off-by: default avatarMario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 53f731f5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -399,10 +399,11 @@ static const struct hid_device_id hid_battery_quirks[] = {
	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_CHROMEBOOK_TROGDOR_POMPOM),
	  HID_BATTERY_QUIRK_AVOID_QUERY },
	/*
	 * Elan I2C-HID touchscreens seem to all report a non present battery,
	 * set HID_BATTERY_QUIRK_IGNORE for all Elan I2C-HID devices.
	 * Elan HID touchscreens seem to all report a non present battery,
	 * set HID_BATTERY_QUIRK_IGNORE for all Elan I2C and USB HID devices.
	 */
	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, HID_ANY_ID), HID_BATTERY_QUIRK_IGNORE },
	{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, HID_ANY_ID), HID_BATTERY_QUIRK_IGNORE },
	{}
};