From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Onkalo Samu <samu.p.onkalo@nokia.com>
Cc: ext Dmitry Torokhov <dmitry.torokhov@gmail.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>
Subject: Re: [PATCH 1/1] TWL4030 keypad: keypad lock / unlock
Date: Wed, 25 Nov 2009 14:46:02 +0000 [thread overview]
Message-ID: <20091125144601.GB636@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <1259158937.9055.6.camel@4fid08082>
On Wed, Nov 25, 2009 at 04:22:17PM +0200, Onkalo Samu wrote:
> Something like that:
The userspace interface looks reasonable to me but...
> + return count;
> + }
> + input_dev->disabled = i;
> should this be a counter or boolean? Or should this be in driver itself
> and not in input system.
I'd expect a boolean - userspace can refcount itself if it needs to, but
it'd be strange if configuration written into sysfs didn't always take
effect.
> + if (i)
> + input_dev->disable(input_dev);
> + else
> + input_dev->enable(input_dev);
...it'd seem more natural to have the sense of the sysfs file be the
other way around, but that is a matter of taste. It just feels better
to me for "true" to mean "on".
I don't know what the best way to sync with the device being open and
in use is, though.
prev parent reply other threads:[~2009-11-25 14:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-10 8:24 [PATCH 0/1] TWL4030 keypad: lock / unlock feature Samu Onkalo
2009-11-10 8:24 ` [PATCH 1/1] TWL4030 keypad: keypad lock / unlock Samu Onkalo
2009-11-10 13:43 ` Mark Brown
2009-11-10 17:26 ` Dmitry Torokhov
2009-11-11 9:57 ` Onkalo Samu
2009-11-11 10:08 ` Mark Brown
2009-11-23 12:05 ` Onkalo Samu
2009-11-23 13:54 ` Mark Brown
2009-11-25 14:22 ` Onkalo Samu
2009-11-25 14:46 ` Mark Brown [this message]
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=20091125144601.GB636@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=samu.p.onkalo@nokia.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.