On 8/31/21 1:21 AM, Dmitry Torokhov wrote:
On Tue, Aug 31, 2021 at 12:49:49AM +0200, Marek Vasut wrote:
On 8/30/21 10:55 PM, Dmitry Torokhov wrote:
[...]
+ return -EINVAL;
+
+ priv->input->absinfo[ABS_X].maximum = resx - 1;
+ priv->input->absinfo[ABS_Y].maximum = resy - 1;
+ priv->input->absinfo[ABS_MT_POSITION_X].maximum = resx - 1;
+ priv->input->absinfo[ABS_MT_POSITION_Y].maximum = resy - 1;
There is
input_set_abs_max(priv->input, ABS_X, resx - 1);
git grep finds nothing in linux-next / your tree on k.org / patchwork. Where
is that ?
Look for INPUT_GENERATE_ABS_ACCESSORS in include/linux/input.h
Oh, input_abs_set_max, thanks.