diff options
author | Johnny Chuang <[email protected]> | 2020-03-06 10:05:20 -0800 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2020-03-06 10:06:36 -0800 |
commit | 061706716384f1633d3d5090b22a99f33f1fcf2f (patch) | |
tree | 1cfdd892e5a77f349b5e1adfa6589379880df257 | |
parent | 1dd5ddc125b4625c3beb8e644ae872445d739bbc (diff) |
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]>
-rw-r--r-- | drivers/input/touchscreen/elants_i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c index 491179967b29..14c577c16b16 100644 --- a/drivers/input/touchscreen/elants_i2c.c +++ b/drivers/input/touchscreen/elants_i2c.c @@ -1309,6 +1309,7 @@ static int elants_i2c_probe(struct i2c_client *client, input_set_abs_params(ts->input, ABS_MT_PRESSURE, 0, 255, 0, 0); input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->x_res); input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->y_res); + input_abs_set_res(ts->input, ABS_MT_TOUCH_MAJOR, 1); error = input_register_device(ts->input); if (error) { |