summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/wacom.h
diff options
context:
space:
mode:
authorEduard Hasenleithner <eduard@hasenleithner.at>2011-09-07 23:08:54 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-09-07 23:19:01 +0200
commit5d7e7d479856f23eebc272128905a7ecada367fb (patch)
treede9a5eab7bee6007b7a576b6f96a9a32ce06dc57 /drivers/input/tablet/wacom.h
parentMerge commit 'v3.1-rc4' into next (diff)
downloadlinux-5d7e7d479856f23eebc272128905a7ecada367fb.tar.xz
linux-5d7e7d479856f23eebc272128905a7ecada367fb.zip
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.h6
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 {
struct mutex lock;
bool open;
char phys[32];
+ struct wacom_led {
+ u8 select; /* status led selector (0..3, -1=none) */
+ u8 llv; /* status led brightness no button */
+ u8 hlv; /* status led brightness button pressed */
+ u8 img_lum; /* OLED matrix display brightness */
+ } led;
};
extern const struct usb_device_id wacom_ids[];