HID: uclogic: Add battery quirk
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 26 Dec 2022 12:54:50 +0000 (13:54 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 Jan 2023 08:44:57 +0000 (09:44 +0100)
commitf60c377f52de37f8705c5fc6d57737fdaf309ff9
tree8b70e46ff1ee79623ce0930b99315bbbbe045b57
parent14b71e6ad8ca59dd734c7fa9676f3d60bddee2a9
HID: uclogic: Add battery quirk

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>
drivers/hid/hid-uclogic-params.c
drivers/hid/hid-uclogic-params.h