* [PATCH] doc: specify that ABS_MT_SLOT must have a minimum of 0
@ 2013-05-31 6:29 Peter Hutterer
2013-06-12 8:51 ` Benjamin Tissoires
0 siblings, 1 reply; 3+ messages in thread
From: Peter Hutterer @ 2013-05-31 6:29 UTC (permalink / raw)
To: Henrik Rydberg; +Cc: linux-input, Benjamin Tissoires
This is effectively already in force through input_mt_init_slots, and uinput
too ignores the actual minimum.
Since slots are a kernel-genenerated axis only, non-zero minimums make
little sense and are likely to cause errors. Better to treat a non-zero
minimum as kernel bug if it ever happens.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
---
I admit that sentence looks a bit lost there, if you want to move this
elsewhere to have more exposure I'm happy to do so once I figure out where.
Documentation/input/multi-touch-protocol.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/input/multi-touch-protocol.txt b/Documentation/input/multi-touch-protocol.txt
index 2c17961..de139b1 100644
--- a/Documentation/input/multi-touch-protocol.txt
+++ b/Documentation/input/multi-touch-protocol.txt
@@ -80,6 +80,8 @@ Userspace can detect that a driver can report more total contacts than slots
by noting that the largest supported BTN_TOOL_*TAP event is larger than the
total number of type B slots reported in the absinfo for the ABS_MT_SLOT axis.
+The minimum value of the ABS_MT_SLOT axis must be 0.
+
Protocol Example A
------------------
--
1.8.2.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] doc: specify that ABS_MT_SLOT must have a minimum of 0
2013-05-31 6:29 [PATCH] doc: specify that ABS_MT_SLOT must have a minimum of 0 Peter Hutterer
@ 2013-06-12 8:51 ` Benjamin Tissoires
2013-06-13 19:30 ` Henrik Rydberg
0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Tissoires @ 2013-06-12 8:51 UTC (permalink / raw)
To: Peter Hutterer; +Cc: Henrik Rydberg, linux-input, Dmitry Torokhov
On Fri, May 31, 2013 at 8:29 AM, Peter Hutterer
<peter.hutterer@who-t.net> wrote:
> This is effectively already in force through input_mt_init_slots, and uinput
> too ignores the actual minimum.
>
> Since slots are a kernel-genenerated axis only, non-zero minimums make
> little sense and are likely to cause errors. Better to treat a non-zero
> minimum as kernel bug if it ever happens.
>
> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Adding Dmitry in CC.
Cheers,
Benjamin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] doc: specify that ABS_MT_SLOT must have a minimum of 0
2013-06-12 8:51 ` Benjamin Tissoires
@ 2013-06-13 19:30 ` Henrik Rydberg
0 siblings, 0 replies; 3+ messages in thread
From: Henrik Rydberg @ 2013-06-13 19:30 UTC (permalink / raw)
To: Benjamin Tissoires; +Cc: Peter Hutterer, linux-input, Dmitry Torokhov
On Wed, Jun 12, 2013 at 10:51:56AM +0200, Benjamin Tissoires wrote:
> On Fri, May 31, 2013 at 8:29 AM, Peter Hutterer
> <peter.hutterer@who-t.net> wrote:
> > This is effectively already in force through input_mt_init_slots, and uinput
> > too ignores the actual minimum.
> >
> > Since slots are a kernel-genenerated axis only, non-zero minimums make
> > little sense and are likely to cause errors. Better to treat a non-zero
> > minimum as kernel bug if it ever happens.
> >
> > Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
>
> Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Applied, thanks Peter and Benjamin.
Henrik
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-13 19:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-31 6:29 [PATCH] doc: specify that ABS_MT_SLOT must have a minimum of 0 Peter Hutterer
2013-06-12 8:51 ` Benjamin Tissoires
2013-06-13 19:30 ` Henrik Rydberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).