HID: wacom: Allow dynamic battery creation/destruction
authorJason Gerecke <killertofu@gmail.com>
Fri, 6 Mar 2015 19:47:40 +0000 (11:47 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 11 Mar 2015 15:46:12 +0000 (11:46 -0400)
commitfce9957d8f618346b76c63066e146fc76ed975ce
tree95dfe85fa6a0ab13fef04a01c4b020f6d000cf23
parent953f2c5f716305a5c2ebea935f410ee7aa439159
HID: wacom: Allow dynamic battery creation/destruction

Tablets like the Intuos, Intuos Pro, and Bamboo have a connector for an
optional wireless module that can be connected on the fly. The presence
(or absence) of this module is indicated in a status report recieved
from the tablet. This patch adds a workqueue function that will create
or destroy a power_supply object at runtime to match the current state
of the WACOM_QUIRK_BATTERY flag.

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_sys.c