Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mario Limonciello (AMD) and committed by
Jiri Kosina
534ca75e 53f731f5

+3 -2
+3 -2
drivers/hid/hid-input.c
··· 399 399 { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_CHROMEBOOK_TROGDOR_POMPOM), 400 400 HID_BATTERY_QUIRK_AVOID_QUERY }, 401 401 /* 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. 404 404 */ 405 405 { 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 }, 406 407 {} 407 408 }; 408 409