From: Rafi Rubin <rafi@seas.upenn.edu>
To: mickib1@gmail.com
Cc: jkosina@suse.cz, chatty@enac.fr, peterhuewe@gmx.de,
micki@n-trig.com, linux-input@vger.kernel.org,
linux-kernel@vger.kernel.org, rafi@seas.upenn.edu
Subject: Re: [PATCH 5/7] HID: N-trig MTM Driver fix And cleanup patch 5
Date: Mon, 08 Mar 2010 20:29:27 -0500 [thread overview]
Message-ID: <4B95A477.7060104@seas.upenn.edu> (raw)
In-Reply-To: <1268082827-2680-5-git-send-email-micki@n-trig.com>
> - if (id->driver_data)
> - hdev->quirks |= HID_QUIRK_MULTI_INPUT;
This undoes the unfortunate merger of the pen and touch events. Why
would you want to remove that? Is there any actual reason aside from
that's the way you've done it so far?
I admit that if the user space is smart enough to distinguish the
multiplexed streams, its not that big a deal. But even then it
complicates the user space and adds a few assumptions.
Also, splitting them gives the user the freedom to use different drivers
for the different sensors. I understand why you'd want to encourage
users to use your stack for everything, but that also means you are
potentially increasing your own support burden.
All in all, it just seems like a bad idea to me.
> - list_for_each_entry(hidinput,&hdev->inputs, list) {
> - input = hidinput->input;
> - switch (hidinput->report->field[0]->application) {
> - case HID_DG_PEN:
> - input->name = "N-Trig Pen";
> - break;
> - case HID_DG_TOUCHSCREEN:
> - __clear_bit(BTN_TOOL_PEN, input->keybit);
> - /*
> - * A little something special to enable
> - * two and three finger taps.
> - */
> - __set_bit(BTN_TOOL_DOUBLETAP, input->keybit);
> - __set_bit(BTN_TOOL_TRIPLETAP, input->keybit);
> - __set_bit(BTN_TOOL_QUADTAP, input->keybit);
> - /*
> - * The physical touchscreen (single touch)
> - * input has a value for physical, whereas
> - * the multitouch only has logical input
> - * fields.
> - */
> - input->name =
> - (hidinput->report->field[0]
> - ->physical) ?
> - "N-Trig Touchscreen" :
> - "N-Trig MultiTouch";
> - break;
> - }
Even if you want to argue that you need to pull the multi-input quirk,
that doesn't justify pulling the names. Perhaps you may wish to
truncate the name to "N-Trig" or something. But give them some name.
Those names simplify driver correlation in user space.
Rafi
next prev parent reply other threads:[~2010-03-09 1:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-08 21:13 [PATCH 1/7] HID: N-trig MTM Driver fix and cleanup patch 1 mickib1
2010-03-08 21:13 ` [PATCH 2/7] HID: N-trig MTM Driver fix and cleanup patch 2 mickib1
2010-03-08 21:13 ` [PATCH 3/7] HID: N-trig MTM Driver fix And cleanup patch 3 mickib1
2010-03-08 21:13 ` [PATCH 4/7] HID: N-trig MTM Driver fix And cleanup Patch 4 mickib1
2010-03-08 21:13 ` [PATCH 5/7] HID: N-trig MTM Driver fix And cleanup patch 5 mickib1
2010-03-08 21:13 ` [PATCH 6/7] HID: N-trig MTM Driver fix And cleanup patch 6 mickib1
2010-03-09 1:20 ` Rafi Rubin
2010-03-09 10:15 ` Jiri Kosina
2010-03-09 1:29 ` Rafi Rubin [this message]
2010-03-09 1:10 ` [PATCH 4/7] HID: N-trig MTM Driver fix And cleanup Patch 4 Rafi Rubin
2010-03-09 1:07 ` [PATCH 2/7] HID: N-trig MTM Driver fix and cleanup patch 2 Rafi Rubin
2010-03-09 15:43 ` Stéphane Chatty
2010-03-09 0:34 ` [PATCH 1/7] HID: N-trig MTM Driver fix and cleanup patch 1 Rafi Rubin
2010-03-09 0:50 ` Rafi Rubin
2010-03-09 10:11 ` Jiri Kosina
2010-03-09 8:43 ` Dmitry Torokhov
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=4B95A477.7060104@seas.upenn.edu \
--to=rafi@seas.upenn.edu \
--cc=chatty@enac.fr \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=micki@n-trig.com \
--cc=mickib1@gmail.com \
--cc=peterhuewe@gmx.de \
/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 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).