summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-debug.c
diff options
context:
space:
mode:
authorJohn Chen <johnchen902@gmail.com>2021-03-30 14:33:19 +0300
committerJiri Kosina <jkosina@suse.cz>2021-04-07 14:15:17 +0300
commit9de07a4e8d4cb269f9876b2ffa282b5ffd09e05b (patch)
tree233e672a02a88376647b880d64df0068de1223f4 /drivers/hid/hid-debug.c
parentc0dc5582812dfaf122a6eb188b0cd8e5ae4b0387 (diff)
downloadlinux-9de07a4e8d4cb269f9876b2ffa282b5ffd09e05b.tar.xz
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>
Diffstat (limited to 'drivers/hid/hid-debug.c')
-rw-r--r--drivers/hid/hid-debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c
index d7eaf9100370..59f8d716d78f 100644
--- a/drivers/hid/hid-debug.c
+++ b/drivers/hid/hid-debug.c
@@ -417,6 +417,7 @@ static const struct hid_usage_entry hid_usage_table[] = {
{ 0x85, 0x44, "Charging" },
{ 0x85, 0x45, "Discharging" },
{ 0x85, 0x4b, "NeedReplacement" },
+ { 0x85, 0x65, "AbsoluteStateOfCharge" },
{ 0x85, 0x66, "RemainingCapacity" },
{ 0x85, 0x68, "RunTimeToEmpty" },
{ 0x85, 0x6a, "AverageTimeToFull" },