aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorJosé Expósito <[email protected]>2025-08-14 10:39:40 +0000
committerJiri Kosina <[email protected]>2025-08-20 18:03:39 +0000
commite94536e1d1818b0989aa19b443b7089f50133c35 (patch)
tree1587e7e28e5b0d730cb4437ded9bd26180852d9c /drivers/cdx/controller/cdx_controller.c
parentHID: input: rename hidinput_set_battery_charge_status() (diff)
downloadkernel-e94536e1d1818b0989aa19b443b7089f50133c35.tar.gz
kernel-e94536e1d1818b0989aa19b443b7089f50133c35.zip
HID: input: report battery status changes immediately
Previously, the battery status (charging/discharging) was not reported immediately to user-space.  For most input devices, this wasn't problematic because changing their battery status requires connecting them to a different bus. For example, a gamepad would report a discharging status while connected via Bluetooth and a charging status while connected via USB. However, certain devices are not connected or disconnected when their battery status changes. For example, a phone battery changes its status without connecting or disconnecting it. In these cases, the battery status was not reported immediately to user space. Report battery status changes immediately to user space to support these kinds of devices. Fixes: a608dc1c0639 ("HID: input: map battery system charging") Reported-by: 卢国宏 <[email protected]> Closes: https://lore.kernel.org/linux-input/aI49Im0sGb6fpgc8@fedora/T/ Tested-by: 卢国宏 <[email protected]> Signed-off-by: José Expósito <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions