Commit b84ae4a1 authored by Daniel Mack's avatar Daniel Mack Committed by Linus Torvalds

Input: fix faulty XXinput_* calls

They've been introduced by 987a6c02 ("Input: switch to input_abs_*()
access functions") and they appear to be some kind of debug left-over.

[Dmitry Torokhov: these are my fault - I added XX prefixes in places where
 I wanted to do additional review of the code but failed to actually do
 that in these particular instances.]
Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e259f191
...@@ -139,7 +139,7 @@ static int __init amijoy_init(void) ...@@ -139,7 +139,7 @@ static int __init amijoy_init(void)
amijoy_dev[i]->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) | amijoy_dev[i]->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) |
BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT); BIT_MASK(BTN_MIDDLE) | BIT_MASK(BTN_RIGHT);
for (j = 0; j < 2; j++) { for (j = 0; j < 2; j++) {
XXinput_set_abs_params(amijoy_dev[i], ABS_X + j, input_set_abs_params(amijoy_dev[i], ABS_X + j,
-1, 1, 0, 0); -1, 1, 0, 0);
} }
......
...@@ -235,7 +235,7 @@ static void hil_dev_handle_ptr_events(struct hil_dev *ptr) ...@@ -235,7 +235,7 @@ static void hil_dev_handle_ptr_events(struct hil_dev *ptr)
if (val < input_abs_min(dev, ABS_X + i)) if (val < input_abs_min(dev, ABS_X + i))
input_abs_set_min(dev, ABS_X + i, val); input_abs_set_min(dev, ABS_X + i, val);
if (val > input_abs_max(dev, ABS_X + i)) if (val > input_abs_max(dev, ABS_X + i))
XXinput_abs_set_max(dev, ABS_X + i, val); input_abs_set_max(dev, ABS_X + i, val);
#endif #endif
if (i % 3) if (i % 3)
val = input_abs_max(dev, ABS_X + i) - val; val = input_abs_max(dev, ABS_X + i) - val;
...@@ -391,7 +391,7 @@ static void hil_dev_pointer_setup(struct hil_dev *ptr) ...@@ -391,7 +391,7 @@ static void hil_dev_pointer_setup(struct hil_dev *ptr)
int diff = input_abs_max(input_dev, ABS_X + i) / 10; int diff = input_abs_max(input_dev, ABS_X + i) / 10;
input_abs_set_min(input_dev, ABS_X + i, input_abs_set_min(input_dev, ABS_X + i,
input_abs_min(input_dev, ABS_X + i) + diff) input_abs_min(input_dev, ABS_X + i) + diff)
XXinput_abs_set_max(input_dev, ABS_X + i, input_abs_set_max(input_dev, ABS_X + i,
input_abs_max(input_dev, ABS_X + i) - diff) input_abs_max(input_dev, ABS_X + i) - diff)
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment