]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: input: rename hidinput_set_battery_charge_status()
authorJosé Expósito <jose.exposito89@gmail.com>
Thu, 14 Aug 2025 10:39:39 +0000 (12:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Sep 2025 13:26:26 +0000 (15:26 +0200)
commitab718b489f498e2f4b3e409dd4f08185a265aaa5
treeefed9901c16c911c68c925976974fff6537355fc
parent1b5bfaed35da7712a706650cff93d825e171e8d0
HID: input: rename hidinput_set_battery_charge_status()

[ Upstream commit a82231b2a8712d0218fc286a9b0da328d419a3f4 ]

In preparation for a patch fixing a bug affecting
hidinput_set_battery_charge_status(), rename the function to
hidinput_update_battery_charge_status() and move it up so it can be used
by hidinput_update_battery().

Refactor, no functional changes.

Tested-by: 卢国宏 <luguohong@xiaomi.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Stable-dep-of: e94536e1d181 ("HID: input: report battery status changes immediately")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-input-test.c
drivers/hid/hid-input.c