aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/wacom_sys.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-09-05 15:25:11 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-09-05 15:57:58 -0400
commitfed87e655a2c20468d628b37424af58287803afe (patch)
tree04e683df294ce2f1eff04196f9454539f236f986 /drivers/input/tablet/wacom_sys.c
parent92944c1c943647c7eb39c081feeecdd169f68ee4 (diff)
Input: wacom - add fuzz parameters to features
The signal-to-noise ratio varies between devices, but currently all devices are treated the same way. Add fuzz parameters to the feature struct, allowing for tailored treatment of devices. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tablet/wacom_sys.c')
-rw-r--r--drivers/input/tablet/wacom_sys.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index 42ba3691d90..e510e4fb54f 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -333,8 +333,12 @@ static int wacom_retrieve_hid_descriptor(struct usb_interface *intf,
333 struct usb_host_interface *interface = intf->cur_altsetting; 333 struct usb_host_interface *interface = intf->cur_altsetting;
334 struct hid_descriptor *hid_desc; 334 struct hid_descriptor *hid_desc;
335 335
336 /* default device to penabled */ 336 /* default features */
337 features->device_type = BTN_TOOL_PEN; 337 features->device_type = BTN_TOOL_PEN;
338 features->x_fuzz = 4;
339 features->y_fuzz = 4;
340 features->pressure_fuzz = 0;
341 features->distance_fuzz = 0;
338 342
339 /* only Tablet PCs need to retrieve the info */ 343 /* only Tablet PCs need to retrieve the info */
340 if ((features->type != TABLETPC) && (features->type != TABLETPC2FG)) 344 if ((features->type != TABLETPC) && (features->type != TABLETPC2FG))