Skip to contentSkip to conversation

Input patches for 2.6.15

PATCH New Dmitry Torokhov 1 participant 4 messages Dec 30, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Input patches for 2.6.15

Hi Linus,

Here are 3 tiny input patches correcting typos introduced by conversion to dynamic input_dev allocation.

 input/joystick/warrior.c |    2 +-
 usb/input/kbtab.c        |    2 +-
 usb/input/wacom.c        |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--
Dmitry

#1 lore raw

PATCH 1/3 Input: kbtab - fix Y axis setup

This patch fixes a typo introduced by conversion to dynamic input_dev allocation.

---

drivers/usb/input/kbtab.c +1 -1
Index: work/drivers/usb/input/kbtab.c
===================================================================
@@ -159,7 +159,7 @@ static int kbtab_probe(struct usb_interf
 	input_dev->keybit[LONG(BTN_DIGI)] |= BIT(BTN_TOOL_PEN) | BIT(BTN_TOUCH);
 	input_dev->mscbit[0] |= BIT(MSC_SERIAL);
 	input_set_abs_params(input_dev, ABS_X, 0, 0x2000, 4, 0);
-	input_set_abs_params(input_dev, ABS_X, 0, 0x1750, 4, 0);
+	input_set_abs_params(input_dev, ABS_Y, 0, 0x1750, 4, 0);
 	input_set_abs_params(input_dev, ABS_PRESSURE, 0, 0xff, 0, 0);
 
 	endpoint = &intf->cur_altsetting->endpoint[0].desc;
#2 lore raw

PATCH 2/3 Input: warrior - fix HAT0Y axis setup

In reply to Dmitry Torokhov

This patch fixes a typo introduced by conversion to dynamic input_dev allocation.

---

drivers/input/joystick/warrior.c +1 -1
Index: work/drivers/input/joystick/warrior.c
===================================================================
@@ -172,7 +172,7 @@ static int warrior_connect(struct serio 
 	input_set_abs_params(input_dev, ABS_Y, -64, 64, 0, 8);
 	input_set_abs_params(input_dev, ABS_THROTTLE, -112, 112, 0, 0);
 	input_set_abs_params(input_dev, ABS_HAT0X, -1, 1, 0, 0);
-	input_set_abs_params(input_dev, ABS_HAT0X, -1, 1, 0, 0);
+	input_set_abs_params(input_dev, ABS_HAT0Y, -1, 1, 0, 0);
 
 	serio_set_drvdata(serio, warrior);
 
#3 lore raw

PATCH 3/3 Input: wacom - fix X axis setup

In reply to Dmitry Torokhov

From: Denny Priebe <[email protected]>

This patch fixes a typo introduced by conversion to dynamic input_dev allocation.

---

drivers/usb/input/wacom.c +1 -1
Index: work/drivers/usb/input/wacom.c
===================================================================
@@ -854,7 +854,7 @@ static int wacom_probe(struct usb_interf
 
 	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);