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:30:08 +0000 (10:30 +0200)
commita569d41c5aba7ebbd52ca6f495ea0134178d489d
treef4f42936dc13d5b3a426e5de159e3fbc29e9bf0e
parentb08469874a1628bd2772dee915fbf7645d0dae08
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