Skip to content

Commit 0617067

Browse files
ElanJohnnyChuangdtor
authored andcommitted
Input: elants_i2c - report resolution information for touch major
This patch supports reporting resolution for ABS_MT_TOUCH_MAJOR event. This information is needed in showing pressure/width radius. Signed-off-by: Johnny Chuang <[email protected]> Reviewed-by: Harry Cutts <[email protected]> Reviewed-by: Peter Hutterer <[email protected]> Acked-by: Benjamin Tissoires <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 1dd5ddc commit 0617067

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/input/touchscreen/elants_i2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ static int elants_i2c_probe(struct i2c_client *client,
13091309
input_set_abs_params(ts->input, ABS_MT_PRESSURE, 0, 255, 0, 0);
13101310
input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->x_res);
13111311
input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->y_res);
1312+
input_abs_set_res(ts->input, ABS_MT_TOUCH_MAJOR, 1);
13121313

13131314
error = input_register_device(ts->input);
13141315
if (error) {

0 commit comments

Comments
 (0)