diff options
author | John Chen <johnchen902@gmail.com> | 2021-03-30 19:33:19 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-04-07 13:15:17 +0200 |
commit | 9de07a4e8d4cb269f9876b2ffa282b5ffd09e05b (patch) | |
tree | 233e672a02a88376647b880d64df0068de1223f4 /drivers/hid/hid-debug.c | |
parent | c0dc5582812dfaf122a6eb188b0cd8e5ae4b0387 (diff) | |
download | linux-stable-9de07a4e8d4cb269f9876b2ffa282b5ffd09e05b.tar.gz linux-stable-9de07a4e8d4cb269f9876b2ffa282b5ffd09e05b.tar.bz2 linux-stable-9de07a4e8d4cb269f9876b2ffa282b5ffd09e05b.zip |
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.c | 1 |
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" }, |