HID: hid-input: add Surface Go battery quirk
authorZoltan Tamas Vajda <zoltan.tamas.vajda@gmail.com>
Thu, 3 Jun 2021 18:58:14 +0000 (20:58 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Jun 2021 13:37:16 +0000 (15:37 +0200)
commitb5539722eb832441f309642fe5102cc3536f92b8
tree44024f644cd02fe9b91e294f415470e41fabebf4
parentf8e5388a9da05708fb6d5a0137b287dbfd32d29c
HID: hid-input: add Surface Go battery quirk

The Elantech touchscreen/digitizer in the Surface Go mistakenly reports
having a battery. This results in a low battery message every time you
try to use the pen.

This patch adds a quirk to ignore the non-existent battery and
gets rid of the false low battery messages.

Signed-off-by: Zoltan Tamas Vajda <zoltan.tamas.vajda@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c