From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Samu Onkalo <samu.p.onkalo@nokia.com>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH 1/1] Polled input device: add device open and close methods
Date: Wed, 14 Oct 2009 01:00:57 -0700 [thread overview]
Message-ID: <20091014080057.GE5318@core.coreip.homeip.net> (raw)
In-Reply-To: <1255415088-31845-2-git-send-email-samu.p.onkalo@nokia.com>
On Tue, Oct 13, 2009 at 09:24:48AM +0300, Samu Onkalo wrote:
> Optional open and close methods for preparing and closing
> the device.
>
> Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com>
> ---
> drivers/input/input-polldev.c | 6 ++++++
> include/linux/input-polldev.h | 2 ++
> 2 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/input/input-polldev.c b/drivers/input/input-polldev.c
> index 0d3ce7a..0ad788b 100644
> --- a/drivers/input/input-polldev.c
> +++ b/drivers/input/input-polldev.c
> @@ -80,6 +80,9 @@ static int input_open_polled_device(struct input_dev *input)
> if (error)
> return error;
>
> + if (dev->open)
> + dev->open(dev);
> +
> if (dev->flush)
> dev->flush(dev);
Hmm... I think having both open and flush is overkill. My fault for not
looking closer, I will kill the flush and convert existing users to
open.
--
Dmitry
next prev parent reply other threads:[~2009-10-14 8:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-13 6:24 [PATCH 0/1] Open / close for polled input device Samu Onkalo
2009-10-13 6:24 ` [PATCH 1/1] Polled input device: add device open and close methods Samu Onkalo
2009-10-14 8:00 ` Dmitry Torokhov [this message]
2009-10-15 5:49 ` samu.p.onkalo
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=20091014080057.GE5318@core.coreip.homeip.net \
--to=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 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).