HID: add Lenovo Yoga C630 battery quirk
authorSteev Klimaszewski <steev@kali.org>
Fri, 19 Aug 2022 02:39:24 +0000 (21:39 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 25 Aug 2022 09:45:14 +0000 (11:45 +0200)
commit3a47fa7b14c7d9613909a844aba27f99d3c58634
treebc69de52e1c18c7a444b15fe3c88fdd94e94e5f9
parentadada3f4930ac084740ea340bd8e94028eba4f22
HID: add Lenovo Yoga C630 battery quirk

Similar to the Surface Go devices, the Elantech touchscreen/digitizer in
the Lenovo Yoga C630 mistakenly reports the battery of the stylus, and
always reports an empty battery.

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

Signed-off-by: Steev Klimaszewski <steev@kali.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c