mirror of https://gitee.com/openkylin/linux.git
Input: hil_kbd - fix compile error
Fix another compile breakage stemming from 987a6c02
("Input: switch to
input_abs_*() access functions")
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
6ee9f4b4af
commit
77edf0c751
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue