@@ -1001,6 +1001,7 @@
#define USB_VENDOR_ID_NOVATEK 0x0603
#define USB_DEVICE_ID_NOVATEK_PCT 0x0600
#define USB_DEVICE_ID_NOVATEK_MOUSE 0x1602
+#define I2C_DEVICE_ID_ONEXPLAYER_X1 0xF001
#define USB_VENDOR_ID_NTI 0x0757
#define USB_DEVICE_ID_USB_SUN 0x0a00
@@ -390,6 +390,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
* set HID_BATTERY_QUIRK_IGNORE for all Elan I2C-HID devices.
*/
{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, HID_ANY_ID), HID_BATTERY_QUIRK_IGNORE },
+ { HID_I2C_DEVICE(USB_VENDOR_ID_NOVATEK, I2C_DEVICE_ID_ONEXPLAYER_X1),
+ HID_BATTERY_QUIRK_IGNORE },
{}
};
The X1 devices come with a pen-capable touchscreen, in which the HID descriptor reports there is always a battery at 100% charge. Quirk it to not report the battery status. Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev> --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-input.c | 2 ++ 2 files changed, 3 insertions(+)