aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-zpff.c
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2015-03-11 13:25:41 -0400
committerJiri Kosina <jkosina@suse.cz>2015-03-11 13:50:04 -0400
commit71fa641ebbfd2402bdb76d3c6ba7e4a2d1eb2dfc (patch)
tree98f85a9921254a670904652bdf10205a5b1a149a /drivers/hid/hid-zpff.c
parent8fac1722140019d6a53f7b280f8b785707a16f66 (diff)
HID: wacom: Add battery presence indicator to wireless tablets
Declare the POWER_SUPPLY_PROP_PRESENT property to provide userspace with a way to determine if the battery on a wireless tablet is plugged in. Although current wireless tablets do not explicitly report this information, it can be inferred from other state information. In particular, a battery is assumed to be present if any of the following are true: a non-zero battery level reported, the battery is reported as charging, or the tablet is operating wirelessly. Note: The last condition above may not strictly hold for the Graphire Wireless (it charges from a DC barrel jack instead of a USB port), but I do not know what is reported in the no-battery condition. Signed-off-by: Jason Gerecke <killertofu@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-zpff.c')
0 files changed, 0 insertions, 0 deletions