]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite73137eace35dfbc188cab81e7bc177f3c45ed44
tree233e672a02a88376647b880d64df0068de1223f4
parent31ad1d11f73c1bb50f23fca5468c3795bc47fe9a
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