]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: add Lenovo Yoga C630 battery quirk
authorSteev Klimaszewski <steev@kali.org>
Fri, 19 Aug 2022 02:39:24 +0000 (21:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:31:29 +0000 (10:31 +0200)
commit4af0f12367b2cdf687e58044a71916edb60b0f4d
tree7ec3bba8d92f20f382ebd01574f75fff3ddeda77
parentb61400c4e784065c9783442e8ef096fefa811901
HID: add Lenovo Yoga C630 battery quirk

commit 3a47fa7b14c7d9613909a844aba27f99d3c58634 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c