From: Przemo Firszt Date: Thu, 22 Mar 2012 18:54:07 +0000 (+0000) Subject: HID: wacom: Refactor battery/ac reporting for Graphire X-Git-Tag: v3.5-rc1~138^2^3~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e31e3832927f5ee2d788120826e73d120dd39ea9;p=pandora-kernel.git HID: wacom: Refactor battery/ac reporting for Graphire This patch doesn't change the way battery/ac is reported, but the changes are required to facilitate battery reporting for Intuos4 WL. wdata->battery_capacity now stores actual battery capacity as opposed to raw value reported by wacom graphire previously. Power supply state is now stored in a separate variable - it used to be calculated on-the-fly in wacom_ac_get_property function. The raw value has to be stored as well to be able to determine if it has changed. Signed-off-by: Przemo Firszt Reviewed-by: Chris Bagwell Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed