From: Jason Gerecke Date: Wed, 11 Mar 2015 17:25:41 +0000 (-0700) Subject: HID: wacom: Add battery presence indicator to wireless tablets X-Git-Tag: omap-for-v4.1/fixes-rc1~163^2~1^11~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71fa641ebbfd2402bdb76d3c6ba7e4a2d1eb2dfc;p=pandora-kernel.git 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 Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed