diff mbox series

HID: Ignore battery for ELAN touchscreens on ASUS Zenbook Duo 2024 UX8406

Message ID ME3P282MB3003F909C26E93990148A82AA4822@ME3P282MB3003.AUSP282.PROD.OUTLOOK.COM
State New
Headers show
Series HID: Ignore battery for ELAN touchscreens on ASUS Zenbook Duo 2024 UX8406 | expand

Commit Message

Joshua Leivenzon Aug. 17, 2024, 1 p.m. UTC
As with other ELAN touchscreens, both screens on the Zenbook Duo 2024 report
false battery status.

Signed-off-by: Joshua Leivenzon <hacker1024@users.sourceforge.net>
---
 drivers/hid/hid-ids.h   | 2 ++
 drivers/hid/hid-input.c | 4 ++++
 2 files changed, 6 insertions(+)

Comments

Jiri Kosina Aug. 19, 2024, 6:24 p.m. UTC | #1
On Sat, 17 Aug 2024, Joshua Leivenzon wrote:

> As with other ELAN touchscreens, both screens on the Zenbook Duo 2024 report
> false battery status.
> 
> Signed-off-by: Joshua Leivenzon <hacker1024@users.sourceforge.net>

This patch is not needed after [1] lands in Linus' tree.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-6.12/elan&id=bcc31692a1d1e21f0d06c5f727c03ee299d2264e

Thanks,
diff mbox series

Patch

diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 72d56ee7ce1b..e707519689d7 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -425,6 +425,8 @@ 
 #define I2C_DEVICE_ID_ASUS_GV301RA_TOUCHSCREEN 0x2C82
 #define I2C_DEVICE_ID_ASUS_UX3402_TOUCHSCREEN 0x2F2C
 #define I2C_DEVICE_ID_ASUS_UX6404_TOUCHSCREEN 0x4116
+#define I2C_DEVICE_ID_ASUS_UX8406_TOUCHSCREEN_UPPER 0x425B
+#define I2C_DEVICE_ID_ASUS_UX8406_TOUCHSCREEN_LOWER 0x425A
 #define USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN	0x2544
 #define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN	0x2706
 #define I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN	0x261A
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index c9094a4f281e..f10ce7fab072 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -381,6 +381,10 @@  static const struct hid_device_id hid_battery_quirks[] = {
 	  HID_BATTERY_QUIRK_IGNORE },
 	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_ASUS_UX6404_TOUCHSCREEN),
 	  HID_BATTERY_QUIRK_IGNORE },
+	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_ASUS_UX8406_TOUCHSCREEN_UPPER),
+	  HID_BATTERY_QUIRK_IGNORE },
+	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_ASUS_UX8406_TOUCHSCREEN_LOWER),
+	  HID_BATTERY_QUIRK_IGNORE },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN),
 	  HID_BATTERY_QUIRK_IGNORE },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN),