HID: hid-input: add Surface Go battery quirk
authorMaximilian Luz <luzmaximilian@gmail.com>
Wed, 25 May 2022 23:08:27 +0000 (01:08 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 8 Jun 2022 11:06:57 +0000 (13:06 +0200)
commitdb925d809011c37b246434fdce71209fc2e6c0c2
tree099bd361890aa013ca66b7e34c38f52df7de5ddf
parent15b28156029465e594b462e6dad459a737028697
HID: hid-input: add Surface Go battery quirk

Similar to the Surface Go (1), the (Elantech) touchscreen/digitizer in
the Surface Go 2 mistakenly reports the battery of the stylus. Instead
of over the touchscreen device, battery information is provided via
bluetooth and the touchscreen device reports an empty battery.

Apply the HID_BATTERY_QUIRK_IGNORE quirk to ignore this battery and
prevent the erroneous low battery warnings.

Cc: stable@vger.kernel.org
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c