summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/wacom_wac.h
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2011-03-26 21:16:05 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-03-26 22:31:06 -0700
commite35fb8c1db2d6fc92783d492e458d19b06502742 (patch)
tree723bb191f123f35c5e2c149b36bed155dde6a42f /drivers/input/tablet/wacom_wac.h
parent7b824bbdd6210155bac9e1a1d795f94f8f2927b2 (diff)
downloadlinux-e35fb8c1db2d6fc92783d492e458d19b06502742.tar.gz
linux-e35fb8c1db2d6fc92783d492e458d19b06502742.tar.xz
linux-e35fb8c1db2d6fc92783d492e458d19b06502742.zip
Input: wacom - report resolution for pen devices
Touch resolution is reported to the userland by retrieving the value from the HID descriptor. But pen resolution is not since it can not be retrieved. The current Wacom X driver has a resolution table. To centralize the source of these values, the resolution entries are added in the wacom_features struct for x and y coordinates respectively. The values are then reported to the userland. Signed-off-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tablet/wacom_wac.h')
-rw-r--r--drivers/input/tablet/wacom_wac.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/tablet/wacom_wac.h b/drivers/input/tablet/wacom_wac.h
index 835f756b150c..53eb71b68330 100644
--- a/drivers/input/tablet/wacom_wac.h
+++ b/drivers/input/tablet/wacom_wac.h
@@ -74,6 +74,8 @@ struct wacom_features {
int pressure_max;
int distance_max;
int type;
+ int x_resolution;
+ int y_resolution;
int device_type;
int x_phy;
int y_phy;