HID: Ignore battery for Elan touchscreen on Asus TP420IA
authormarco.rodolfi@tuta.io <marco.rodolfi@tuta.io>
Tue, 10 Jan 2023 14:54:26 +0000 (15:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Mar 2023 10:52:21 +0000 (11:52 +0100)
commit1b7730f203559481edefb06dca743bea01a6e138
treee68e9d6396e79229a638acc0b928162997d000d7
parent0773ecf7bcda9cea57e28ffc55297ea2c16bca3a
HID: Ignore battery for Elan touchscreen on Asus TP420IA

[ Upstream commit cb963b2c011a62838852c902eccb3f72e5d3dbb6 ]

This device has a touchscreen thats report a battery even if it doesn't
have one.
Ask Linux to ignore the battery so it will not always report it as low.

[jkosina@suse.cz: fix whitespace damage]
Signed-off-by: Marco Rodolfi <marco.rodolfi@tuta.io>
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