aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2021-06-29 11:25:50 -0700
committerJiri Kosina <[email protected]>2021-07-15 20:55:30 +0200
commitf4abaa9eebde334045ed6ac4e564d050f1df3013 (patch)
tree1a9cd50b70deb45fc9525887b087ead44390b147 /scripts/gdb/linux
parentdf04fbe8680bfe07f3d7487eccff9f768bb02533 (diff)
HID: input: do not report stylus battery state as "full"
The power supply states of discharging, charging, full, etc, represent state of charging, not the capacity level of the battery (for which we have a separate property). Current HID usage tables to not allow for expressing charging state of the batteries found in generic styli, so we should simply assume that the battery is discharging even if current capacity is at 100% when battery strength reporting is done via HID interface. In fact, we were doing just that before commit 581c4484769e. This change helps UIs to not mis-represent fully charged batteries in styli as being charging/topping-off. Fixes: 581c4484769e ("HID: input: map digitizer battery usage") Reported-by: Kenneth Albanowski <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions