]> git.baikalelectronics.ru Git - kernel.git/commit
HID: Ignore HP Envy x360 eu0009nv stylus battery
authorJosé Expósito <jose.exposito89@gmail.com>
Thu, 24 Nov 2022 17:49:32 +0000 (18:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:43 +0000 (11:11 +0100)
commite1f243e3a731b6934cd75e80059b6098d05b92e2
treef0e0e1c0906708397b0b0b60b6ce43c506836bc0
parent7771eb9ba24742185710003fbdbc3e576ffa69d0
HID: Ignore HP Envy x360 eu0009nv stylus battery

[ Upstream commit 4b82c21b398082e9684b46d551352bae2a16ef50 ]

Battery status is reported for the HP Envy x360 eu0009nv stylus even
though it does not have battery.

Prevent it from always reporting the battery as low (1%).

Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/823
Reported-by: Ioannis Iliopoulos <jxftw2424@gmail.com>
Tested-by: Ioannis Iliopoulos <jxftw2424@gmail.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c