Skip to content

Commit 23ad893

Browse files
Caesar-githubrkhuangtao
authored andcommitted
input: touchscreen: add the ABS_X and ABS_Y report for gt1x
As the linux platform used the udev/mdev userspace mechanisms, It needed the ABS_X and ABS_Y when the input event as the touchscreen. Otherswise the userspace will identify as the keyboard. Change-Id: I892ed37252d49c5457fe1f25fdd14dabce6ff9cf Signed-off-by: Caesar Wang <wxt@rock-chips.com>
1 parent ebb63d2 commit 23ad893

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • drivers/input/touchscreen/gt1x

drivers/input/touchscreen/gt1x/gt1x.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@ static s8 gt1x_request_input_dev(void)
499499
input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
500500
input_set_abs_params(input_dev, ABS_MT_TRACKING_ID, 0, 255, 0, 0);
501501

502+
input_set_abs_params(input_dev, ABS_X, 0, 255, 0, 0);
503+
input_set_abs_params(input_dev, ABS_Y, 0, 255, 0, 0);
504+
502505
input_dev->name = gt1x_ts_name;
503506
input_dev->phys = input_dev_phys;
504507
input_dev->id.bustype = BUS_I2C;

0 commit comments

Comments
 (0)