summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/wacom_w8001.c
diff options
context:
space:
mode:
authorJason Gerecke2011-09-08 18:38:14 +0200
committerDmitry Torokhov2011-09-08 18:42:28 +0200
commit3512069eefd3c3424b12f21a68fd473c3fd57220 (patch)
tree4198d5839ca7007abe5f13a2c07d6cdcc41b68cc /drivers/input/touchscreen/wacom_w8001.c
parentInput: adp5588-keys - remove incorrect modalias (diff)
downloadkernel-qcow2-linux-3512069eefd3c3424b12f21a68fd473c3fd57220.tar.gz
kernel-qcow2-linux-3512069eefd3c3424b12f21a68fd473c3fd57220.tar.xz
kernel-qcow2-linux-3512069eefd3c3424b12f21a68fd473c3fd57220.zip
Input: wacom - add POINTER and DIRECT device properties
Adds INPUT_PROP_POINTER or INPUT_PROP_DIRECT as necessary to the hardware supported by the Wacom driver. The DIRECT property is assigned to devices with an embedded screen (i.e. touchscreens and display tablets). The POINTER property is assigned to those without embedded screens. Signed-off-by: Jason Gerecke <killertofu@gmail.com> Reviewed-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen/wacom_w8001.c')
-rw-r--r--drivers/input/touchscreen/wacom_w8001.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/wacom_w8001.c b/drivers/input/touchscreen/wacom_w8001.c
index c14412ef4648..9941d39df43d 100644
--- a/drivers/input/touchscreen/wacom_w8001.c
+++ b/drivers/input/touchscreen/wacom_w8001.c
@@ -383,6 +383,8 @@ static int w8001_setup(struct w8001 *w8001)
dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
strlcat(w8001->name, "Wacom Serial", sizeof(w8001->name));
+ __set_bit(INPUT_PROP_DIRECT, dev->propbit);
+
/* penabled? */
error = w8001_command(w8001, W8001_CMD_QUERY, true);
if (!error) {