diff options
author | Eduard Hasenleithner <eduard@hasenleithner.at> | 2011-09-07 17:08:54 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-09-07 17:19:01 -0400 |
commit | 5d7e7d479856f23eebc272128905a7ecada367fb (patch) | |
tree | de9a5eab7bee6007b7a576b6f96a9a32ce06dc57 /drivers/input/tablet/wacom.h | |
parent | 7e66eaf14e19c032433be7c4df3c892fa2a5282f (diff) |
Input: wacom - add Intuos4 LED and OLED control
This commit enables control of the LEDs and OLED displays found on the
Wacom Intuos4 M, L, and XL. For this purpose, a new "wacom_led" attribute
group is added to the sysfs entry of the USB device.
This "wacom_led" group only shows up when the correct device (M, L, or XL)
is detected. The attributes are described in
Documentation/ABI/testing/sysfs-wacom
Signed-off-by: Eduard Hasenleithner <eduard@hasenleithner.at>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tablet/wacom.h')
-rw-r--r-- | drivers/input/tablet/wacom.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/input/tablet/wacom.h b/drivers/input/tablet/wacom.h index 23317bd09c82..00332d66bc4b 100644 --- a/drivers/input/tablet/wacom.h +++ b/drivers/input/tablet/wacom.h | |||
@@ -114,6 +114,12 @@ struct wacom { | |||
114 | struct mutex lock; | 114 | struct mutex lock; |
115 | bool open; | 115 | bool open; |
116 | char phys[32]; | 116 | char phys[32]; |
117 | struct wacom_led { | ||
118 | u8 select; /* status led selector (0..3, -1=none) */ | ||
119 | u8 llv; /* status led brightness no button */ | ||
120 | u8 hlv; /* status led brightness button pressed */ | ||
121 | u8 img_lum; /* OLED matrix display brightness */ | ||
122 | } led; | ||
117 | }; | 123 | }; |
118 | 124 | ||
119 | extern const struct usb_device_id wacom_ids[]; | 125 | extern const struct usb_device_id wacom_ids[]; |