HID: wacom: Centralize updating of wacom_wac battery status
authorJason Gerecke <killertofu@gmail.com>
Fri, 6 Mar 2015 19:47:39 +0000 (11:47 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 11 Mar 2015 15:46:11 +0000 (11:46 -0400)
commit953f2c5f716305a5c2ebea935f410ee7aa439159
tree02bae448ca0617d4d8cb471b11256eb976cfd95a
parent4ca4ec71c84e4ede2b34d2dcf49e7935c735ad6c
HID: wacom: Centralize updating of wacom_wac battery status

Has the 'wacom_notify_battery' function take on the job of detecting if
updating the power supply is necessary to remove multiple
nearly-identical 'if' blocks.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom.h
drivers/hid/wacom_wac.c