summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorElia Devito <eliadevito@gmail.com>2021-01-22 22:24:37 +0100
committerJiri Kosina <jkosina@suse.cz>2021-02-09 10:47:53 +0100
commitdecfe496fe77061dea658a0bfa11afd4f92b540d (patch)
tree917a0d4da3fb1c2c21f33dd17110b453750a04ff /drivers/hid/hid-input.c
parentfab3a95654eea01d6b0204995be8b7492a00d001 (diff)
downloadlinux-stable-decfe496fe77061dea658a0bfa11afd4f92b540d.tar.gz
linux-stable-decfe496fe77061dea658a0bfa11afd4f92b540d.tar.bz2
linux-stable-decfe496fe77061dea658a0bfa11afd4f92b540d.zip
HID: Ignore battery for Elan touchscreen on HP Spectre X360 15-df0xxx
Battery status is reported for the HP Spectre X360 Convertible 15-df0xxx even if it does not have a battery. Prevent it to always report the battery as low. Signed-off-by: Elia Devito <eliadevito@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index f23027d2795b..8ed7f468bd95 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -324,6 +324,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
HID_BATTERY_QUIRK_IGNORE },
{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN),
HID_BATTERY_QUIRK_IGNORE },
+ { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_15),
+ HID_BATTERY_QUIRK_IGNORE },
{}
};