Thread (17 messages) 17 messages, 2 authors, 2021-08-31

Re: [PATCH v2 1/3] Input: ili210x - use resolution from ili251x firmware

flat view

From: Marek Vasut <marex@denx.de>
Date: 2021-08-30 23:31:10

On 8/31/21 1:21 AM, Dmitry Torokhov wrote:
On Tue, Aug 31, 2021 at 12:49:49AM +0200, Marek Vasut wrote:
quoted
On 8/30/21 10:55 PM, Dmitry Torokhov wrote:

[...]
quoted
quoted
+		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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help