HID: wacom: Correct power_supply type
authorBastien Nocera <hadess@hadess.net>
Thu, 7 Apr 2022 11:54:06 +0000 (13:54 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 21 Apr 2022 07:59:40 +0000 (09:59 +0200)
commit6ff1cae2e30a79265bcce85f617663c480936ab0
tree7b6c3f22438c3a09bece242fa14453a3c3678e88
parent6d09085b38e5ace0001cf4f3cdbd4bf247533b61
HID: wacom: Correct power_supply type

POWER_SUPPLY_TYPE_USB seems to only ever be used by USB ports that are
used to charge the machine itself (so a "system" scope), like the
single USB port on a phone, rather than devices.

The wacom_sys driver is the only driver that sets its device battery as
being a USB type, which doesn't seem correct based on its usage, so
switch it to be a battery type like all the other USB-connected devices.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Acked-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c