Re: [PATCH] Input: fix faulty XXinput_* calls

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Torokhov
Date: Tuesday, August 17, 2010 - 9:26 am

On Tue, Aug 17, 2010 at 04:38:51PM +0200, Daniel Mack wrote:

I think there still a couple of spots need to be adjusted. How about
this one? (Sorry for the silence, I'm in the middle of a vacation).

-- 
Dmitry

Input: hil_kbd - fix compile error

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

 drivers/input/keyboard/hil_kbd.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


diff --git a/drivers/input/keyboard/hil_kbd.c b/drivers/input/keyboard/hil_kbd.c
index dcc86b9..0eddb43 100644
--- a/drivers/input/keyboard/hil_kbd.c
+++ b/drivers/input/keyboard/hil_kbd.c
@@ -232,13 +232,13 @@ static void hil_dev_handle_ptr_events(struct hil_dev *ptr)
 		if (absdev) {
 			val = lo + (hi << 8);
 #ifdef TABLET_AUTOADJUST
-			if (val < input_abs_min(dev, ABS_X + i))
+			if (val < input_abs_get_min(dev, ABS_X + i))
 				input_abs_set_min(dev, ABS_X + i, val);
-			if (val > input_abs_max(dev, ABS_X + i))
+			if (val > input_abs_get_max(dev, ABS_X + i))
 				input_abs_set_max(dev, ABS_X + i, val);
 #endif
 			if (i % 3)
-				val = input_abs_max(dev, ABS_X + i) - val;
+				val = input_abs_get_max(dev, ABS_X + i) - val;
 			input_report_abs(dev, ABS_X + i, val);
 		} else {
 			val = (int) (((int8_t) lo) | ((int8_t) hi << 8));
@@ -388,11 +388,11 @@ static void hil_dev_pointer_setup(struct hil_dev *ptr)
 
 #ifdef TABLET_AUTOADJUST
 		for (i = 0; i < ABS_MAX; i++) {
-			int diff = input_abs_max(input_dev, ABS_X + i) / 10;
+			int diff = input_abs_get_max(input_dev, ABS_X + i) / 10;
 			input_abs_set_min(input_dev, ABS_X + i,
-				input_abs_min(input_dev, ABS_X + i) + diff)
+				input_abs_get_min(input_dev, ABS_X + i) + diff)
 			input_abs_set_max(input_dev, ABS_X + i,
-				input_abs_max(input_dev, ABS_X + i) - diff)
+				input_abs_get_max(input_dev, ABS_X + i) - diff)
 		}
 #endif
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Input: fix faulty XXinput_* calls, Dmitry Torokhov, (Thu Aug 12, 9:22 am)
Re: [PATCH] Input: fix faulty XXinput_* calls, Geert Uytterhoeven, (Sat Aug 14, 2:52 pm)
Re: [PATCH] Input: fix faulty XXinput_* calls, Geert Uytterhoeven, (Tue Aug 17, 12:46 am)
Re: [PATCH] Input: fix faulty XXinput_* calls, Daniel Mack, (Tue Aug 17, 7:38 am)
Re: [PATCH] Input: fix faulty XXinput_* calls, Dmitry Torokhov, (Tue Aug 17, 9:26 am)
Re: [PATCH] Input: fix faulty XXinput_* calls, Dmitry Torokhov, (Tue Aug 17, 10:14 pm)
Re: [PATCH] Input: fix faulty XXinput_* calls, Daniel Mack, (Wed Aug 18, 4:54 am)