HID: Ignore battery for ELAN touchscreen on ROG Flow X13 GV301RA
authorweiliang1503 <weiliang1503@gmail.com>
Thu, 30 Mar 2023 11:56:38 +0000 (19:56 +0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 13 Apr 2023 15:24:42 +0000 (17:24 +0200)
commit35903009dbde804a1565dc89e431c0f15179f054
treeae5e4912c5178cae3300dbd2f04c7f737aecbb21
parenta0f5276716c80415230b47e321e1c46357d70993
HID: Ignore battery for ELAN touchscreen on ROG Flow X13 GV301RA

Ignore the reported battery level of the built-in touchscreen to suppress
battery warnings when a stylus is used. The device ID was added and the
battery ignore quirk was enabled.

Signed-off-by: weiliang1503 <weiliang1503@gmail.com>
Link: https://lore.kernel.org/r/20230330115638.16146-1-weiliang1503@gmail.com
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c