]> 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)
commit2190175c67cad6f2130f1164479ce87017c08b77
tree099bd361890aa013ca66b7e34c38f52df7de5ddf
parent840e7c22dd73bd56eaa08f3634dec489745db034
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