From: Daniel Mack <daniel@zonque.org>
To: Mark Rutland <mark.rutland@arm.com>
Cc: "dtor@mail.ru" <dtor@mail.ru>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"broonie@kernel.org" <broonie@kernel.org>,
"dh.herrmann@gmail.com" <dh.herrmann@gmail.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH v2] Input: Add driver for Microchip's CAP1106
Date: Tue, 15 Jul 2014 11:12:22 +0200 [thread overview]
Message-ID: <53C4F076.1070500@zonque.org> (raw)
In-Reply-To: <20140715085138.GR26465@leverpostej>
On 07/15/2014 10:51 AM, Mark Rutland wrote:
> On Mon, Jul 14, 2014 at 11:20:17AM +0100, Daniel Mack wrote:
>> Hmm, I thought about that, but there are - in theory - more details that
>> could be specified per channel. I left those functions out for the first
>> version, as I have no good way to test them.
>
> Ok. Could you elaborate on what those details might be? It might make
> sense to have these as nodes if there are arbitrary properties to
> describe for each button, but I'm not familiar enough with the hardware
> to make a call either way.
No, there are just settings that can be made for each indvidual
channel/button, such as sensitivity settings for instance. But they can
of course be specified in a similar manner as the keycodes, in a
fixed-size array. That's completely ok I think.
>> linux,keycode feels a bit overkill here though, so I'd rather go for a
>> fixed-size linux,keycodes property. The number of entries is fixed,
>> anyway. Would you be fine with that?
>
> Assuming no-one's likely to want a sparse keymap (i.e. one where some
> keys do nothing) then that's probably ok.
If such a setup occurs, support for disabling channels could easily be
added, and in such cases, the keycode is simple ignored. I don't think a
sparse matrix keymap makes much sense here, especially as the buttons
are not organized in rows and columns.
>>> /me mutters usual grumblings about the autorepeat property.
>>
>> I took that from the gpio-keys driver. Is there a better way to denote
>> such a feature?
>
> Unfortunately not, given current practice. My gripe is that it's a Linux
> detail that were describing rather than a property of the device. We can
> forget about that for now.
I see, so I'll leave it as it is.
I'll drop the input device unregister call as Dmitry said, and repost v5.
Thanks again!
Daniel
next prev parent reply other threads:[~2014-07-15 9:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-11 10:06 [PATCH v2] Input: Add driver for Microchip's CAP1106 Daniel Mack
2014-07-14 9:52 ` Mark Rutland
2014-07-14 10:20 ` Daniel Mack
2014-07-15 8:51 ` Mark Rutland
2014-07-15 9:12 ` Daniel Mack [this message]
2014-07-15 14:42 ` Mark Rutland
2014-07-15 16:41 ` Dmitry Torokhov
2014-07-15 17:17 ` Mark Rutland
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=53C4F076.1070500@zonque.org \
--to=daniel@zonque.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dh.herrmann@gmail.com \
--cc=dtor@mail.ru \
--cc=linux-input@vger.kernel.org \
--cc=mark.rutland@arm.com \
/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.