HID: Add quirk to ignore the touchscreen battery on HP ENVY 15-eu0556ng
authorFabian Vogt <fabian@ritter-vogt.de>
Tue, 3 Oct 2023 19:07:00 +0000 (21:07 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 5 Oct 2023 10:50:35 +0000 (12:50 +0200)
Like various other devices using similar hardware, this model reports a
perpetually empty battery (0-1%).

Join the others and apply HID_BATTERY_QUIRK_IGNORE.

Signed-off-by: Fabian Vogt <fabian@ritter-vogt.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c

index 7e499992a79326069c5a58db5b969fca822df603..e4d2dfd5d2536e0703cceec55c703193b6253647 100644 (file)
 #define I2C_DEVICE_ID_HP_SPECTRE_X360_13T_AW100        0x29F5
 #define I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V1     0x2BED
 #define I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V2     0x2BEE
+#define I2C_DEVICE_ID_HP_ENVY_X360_15_EU0556NG         0x2D02
 
 #define USB_VENDOR_ID_ELECOM           0x056e
 #define USB_DEVICE_ID_ELECOM_BM084     0x0061
index 0235cc1690a10993e0bfd0e525ff871223bb8044..c8b20d44b14724d9327b23bce09a586d473bfbf5 100644 (file)
@@ -409,6 +409,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
          HID_BATTERY_QUIRK_IGNORE },
        { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V2),
          HID_BATTERY_QUIRK_IGNORE },
+       { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_ENVY_X360_15_EU0556NG),
+         HID_BATTERY_QUIRK_IGNORE },
        {}
 };