[2.6.15-rc7] Micro-patch to drivers/usb/input/wacom.c

From: Denny Priebe
Date: Thu Dec 29 2005 - 11:34:07 EST


Hello,

there's a minor typo in wacom.c that causes the device to report the same
range of supported values for its x- and y-axis.

Attached micro-patch fixes this.

Regards,
Denny

--- a/drivers/usb/input/wacom.c~ 2005-12-29 16:51:05.740984093 +0100
+++ b/drivers/usb/input/wacom.c 2005-12-29 16:51:05.740984093 +0100
@@ -854,7 +854,7 @@

input_dev->evbit[0] |= BIT(EV_KEY) | BIT(EV_ABS);
input_dev->keybit[LONG(BTN_DIGI)] |= BIT(BTN_TOOL_PEN) | BIT(BTN_TOUCH) | BIT(BTN_STYLUS);
- input_set_abs_params(input_dev, ABS_X, 0, wacom->features->y_max, 4, 0);
+ input_set_abs_params(input_dev, ABS_X, 0, wacom->features->x_max, 4, 0);
input_set_abs_params(input_dev, ABS_Y, 0, wacom->features->y_max, 4, 0);
input_set_abs_params(input_dev, ABS_PRESSURE, 0, wacom->features->pressure_max, 0, 0);