]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite9a73a47c4d647d2bf1c30e76418431a8226f3c0
tree099bd361890aa013ca66b7e34c38f52df7de5ddf
parente943c4abd75f24473012e1b1abb2e41cd8d0b216
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