diff options
author | dmitry.torokhov@gmail.com <dmitry.torokhov@gmail.com> | 2020-10-01 00:47:13 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2020-10-29 16:14:36 +0100 |
commit | c6838eeef2fbc7e3e1f83759aa016ae6b70c643e (patch) | |
tree | 1363d4ceede35c16620386dd8496732d99436b00 /lib/errseq.c | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid... (diff) | |
download | linux-c6838eeef2fbc7e3e1f83759aa016ae6b70c643e.tar.xz linux-c6838eeef2fbc7e3e1f83759aa016ae6b70c643e.zip |
HID: hid-input: occasionally report stylus battery even if not changed
There are styluses that only report their battery status when they are
touching the touchscreen; additionally we currently suppress battery
reports if capacity has not changed. To help userspace recognize how long
ago the device reported battery status, let's send the change event through
if either capacity has changed, or at least 30 seconds have passed since
last report we've let through.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'lib/errseq.c')
0 files changed, 0 insertions, 0 deletions