HID: input: map battery capacity (00850065)
authorJohn Chen <johnchen902@gmail.com>
Tue, 30 Mar 2021 11:33:19 +0000 (19:33 +0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 7 Apr 2021 11:15:17 +0000 (13:15 +0200)
commit9de07a4e8d4cb269f9876b2ffa282b5ffd09e05b
tree233e672a02a88376647b880d64df0068de1223f4
parentc0dc5582812dfaf122a6eb188b0cd8e5ae4b0387
HID: input: map battery capacity (00850065)

This is the capacity in percentage, relative to design capacity.
Specifically, it is present in Apple Magic Mouse 2.

In contrast, usage 00850064 is also the capacity in percentage, but is
relative to full capacity. It is not mapped here because I don't have
such device.

Signed-off-by: John Chen <johnchen902@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-debug.c
drivers/hid/hid-input.c
include/linux/hid.h