]> git.baikalelectronics.ru Git - kernel.git/commit
HID: uclogic: Add battery quirk
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 26 Dec 2022 12:54:50 +0000 (13:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:56 +0000 (09:33 +0100)
commitf232038119aa66fca1dafb048d90daaf23b5d918
treefc9972bfba058dec7a4ba6749edb9a7b8edee7cd
parent7a29adc4eb0bb7b9debd1858d0e9973386186b3f
HID: uclogic: Add battery quirk

[ Upstream commit e2584e0ee3ce1b19ef72f5bd01ca93f0545495d1 ]

Some UGEE v2 tablets have a wireless version with an internal battery
and their firmware is able to report their battery level.

However, there was not found a field on their descriptor indicating
whether the tablet has battery or not, making it mandatory to classify
such devices through the UCLOGIC_BATTERY_QUIRK quirk.

Tested-by: Mia Kanashi <chad@redpilled.dev>
Tested-by: Andreas Grosse <andig.mail@t-online.de>
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-uclogic-params.c
drivers/hid/hid-uclogic-params.h