[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200306180536.GE217608@dtor-ws>
Date: Fri, 6 Mar 2020 10:05:36 -0800
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Johnny Chuang <johnny.chuang.emc@...il.com>
Cc: Benjamin Tissoires <benjamin.tissoires@...hat.com>,
Peter Hutterer <peter.hutterer@...-t.net>,
linux-kernel@...r.kernel.org, linux-input@...r.kernel.org,
Johnny Chuang <johnny.chuang@....com.tw>,
Jennifer Tsai <jennifer.tsai@....com.tw>,
James Chen <james.chen@....com.tw>,
Paul Liang <paul.liang@....com.tw>,
Jeff Chuang <jeff.chuang@....com.tw>
Subject: Re: [PATCH] Input: elants_i2c - Report resolution information for
touch major
On Thu, Feb 27, 2020 at 09:13:20AM +0800, Johnny Chuang wrote:
> From: Johnny Chuang <johnny.chuang@....com.tw>
>
> 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 <johnny.chuang@....com.tw>
Applied, thank you.
> ---
> drivers/input/touchscreen/elants_i2c.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c
> index 4911799..14c577c 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) {
> --
> 2.7.4
>
--
Dmitry
Powered by blists - more mailing lists