diff options
author | Steev Klimaszewski <steev@kali.org> | 2022-08-18 21:39:24 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-08-25 11:45:14 +0200 |
commit | 3a47fa7b14c7d9613909a844aba27f99d3c58634 (patch) | |
tree | bc69de52e1c18c7a444b15fe3c88fdd94e94e5f9 /drivers/hid/hid-input.c | |
parent | adada3f4930ac084740ea340bd8e94028eba4f22 (diff) | |
download | linux-stable-3a47fa7b14c7d9613909a844aba27f99d3c58634.tar.gz linux-stable-3a47fa7b14c7d9613909a844aba27f99d3c58634.tar.bz2 linux-stable-3a47fa7b14c7d9613909a844aba27f99d3c58634.zip |
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>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r-- | drivers/hid/hid-input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 48c1c02c69f4..17a453bb09a2 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -383,6 +383,8 @@ static const struct hid_device_id hid_battery_quirks[] = { HID_BATTERY_QUIRK_IGNORE }, { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO2_TOUCHSCREEN), HID_BATTERY_QUIRK_IGNORE }, + { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_LENOVO_YOGA_C630_TOUCHSCREEN), + HID_BATTERY_QUIRK_IGNORE }, {} }; |