From: "Henrik Rydberg" <rydberg@euromail.se>
To: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Cc: "Jiri Kosina" <jkosina@suse.cz>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Stéphane Chatty" <chatty@enac.fr>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] hid: Do not create input devices for feature reports
Date: Thu, 24 Feb 2011 21:43:00 +0100 [thread overview]
Message-ID: <20110224204300.GA2423@polaris.bitmath.org> (raw)
In-Reply-To: <AANLkTi=VfSbbV5xwpacC+8yDUfjR3-S8OW47YPvtZwFX@mail.gmail.com>
On Thu, Feb 24, 2011 at 08:50:55PM +0100, Benjamin Tissoires wrote:
> Hi Henrik,
>
> Thanks for spotting this. BTW, I'm not happy with your solution.
>
> You are sending the feature report before creating the struct
> hid_input. To be consistent with the rest, we have to keep the same
> signature. Today, the code does not make any use of it. But I use it
> in my devel branch to auto-detect the maximum contact count of the
> device. This was the safest place to call input_mt_init_slots.
Well, the whole point is "which input device". It would only be
well-defined when the hid device has a single input device. The
feature callback could be called last, however, if that helps.
> How about adding hidinput as an argument to report_features
>
> and calling it after the " for (k = HID_INPUT_REPORT; k <=
> HID_OUTPUT_REPORT; k++) {" loop with
>
> list_for_each_entry_safe(hidinput, next, &hid->inputs, list)
> report_features(hid, hidinput);
>
> I did not even try to compile it right now (I don't have any
> multitouch device right now) but I'll be able to make further tests
> tomorrow.
Thanks,
Henrik
next prev parent reply other threads:[~2011-02-24 20:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 18:30 [PATCH] hid: Do not create input devices for feature reports Henrik Rydberg
2011-02-24 19:50 ` Benjamin Tissoires
2011-02-24 19:50 ` Benjamin Tissoires
2011-02-24 20:43 ` Henrik Rydberg [this message]
2011-02-25 11:18 ` Benjamin Tissoires
2011-02-25 11:18 ` Benjamin Tissoires
2011-02-25 17:19 ` Henrik Rydberg
2011-03-01 17:54 ` Dmitry Torokhov
2011-03-02 15:02 ` Henrik Rydberg
2011-03-03 8:07 ` Dmitry Torokhov
2011-03-01 16:03 ` Jiri Kosina
2011-03-01 16:21 ` Benjamin Tissoires
2011-03-01 16:21 ` Benjamin Tissoires
2011-03-01 16:26 ` Jiri Kosina
2011-03-08 3:44 ` Rafi Rubin
2011-03-10 16:16 ` Henrik Rydberg
2011-03-10 18:00 ` Jiri Kosina
2011-03-10 18:04 ` Henrik Rydberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110224204300.GA2423@polaris.bitmath.org \
--to=rydberg@euromail.se \
--cc=benjamin.tissoires@enac.fr \
--cc=chatty@enac.fr \
--cc=dmitry.torokhov@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.