linux/include
José Expósito a608dc1c06 HID: input: map battery system charging
HID descriptors with Battery System (0x85) Charging (0x44) usage are
ignored and POWER_SUPPLY_STATUS_DISCHARGING is always reported to user
space, even when the device is charging.

Map this usage and when it is reported set the right charging status.

In addition, add KUnit tests to make sure that the charging status is
correctly set and reported. They can be run with the usual command:

    $ ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/hid

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2022-12-20 15:30:35 +01:00
..
acpi - Make ghes_edac a simple module like the rest of the EDAC drivers and 2022-12-12 14:47:31 -08:00
asm-generic Updates for the interrupt core and driver subsystem: 2022-12-12 11:21:29 -08:00
clocksource Updates for timers, timekeeping and drivers: 2022-12-12 12:52:02 -08:00
crypto
drm Some deferred-io and damage worker reworks revert and make a fb function 2022-12-09 11:53:52 +10:00
dt-bindings Pin control changes for the v6.2 kernel cycle: 2022-12-13 13:03:06 -08:00
keys
kunit kunit: add macro to allow conditionally exposing static symbols to tests 2022-12-12 14:13:48 -07:00
kvm
linux HID: input: map battery system charging 2022-12-20 15:30:35 +01:00
math-emu
media Merge tag 'br-v6.2i' of git://linuxtv.org/hverkuil/media_tree into media_stage 2022-12-07 17:58:47 +01:00
memory
misc
net Bluetooth: Remove codec id field in vendor codec definition 2022-12-02 13:09:31 -08:00
pcmcia
ras
rdma
rv
scsi
soc drm for 6.2: 2022-12-13 11:59:58 -08:00
sound ASoC: Updates for v6.2 2022-12-06 11:13:26 +01:00
target
trace for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
uapi Input updates for 6.2 merge window: 2022-12-13 13:20:36 -08:00
ufs
vdso
video drm: Move nomodeset kernel parameter to drivers/video 2022-11-16 13:26:12 +01:00
xen xen: fix xen.h build for CONFIG_XEN_PVH=y 2022-12-05 12:59:49 +01:00