From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Alexander Shiyan <shc_work@mail.ru>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH v3 1/2] input: Add new driver for ARM CLPS711X keypad
Date: Sun, 30 Mar 2014 18:19:35 -0700 [thread overview]
Message-ID: <2993844.QDC18iO0r3@dtor-d630.eng.vmware.com> (raw)
In-Reply-To: <1396210775.399876201@f299.i.mail.ru>
On Monday, March 31, 2014 12:19:35 AM Alexander Shiyan wrote:
> Fri, 28 Mar 2014 09:42:28 -0700 от Dmitry Torokhov
<dmitry.torokhov@gmail.com>:
> > Hi Alexander,
> >
> > On Tue, Mar 18, 2014 at 10:02:19PM +0400, Alexander Shiyan wrote:
> > > + err = input_register_polled_device(poll_dev);
> > > + if (!err) {
> > > + /* Report initial state */
> > > + clps711x_keypad_poll(poll_dev);
> > > +
> > > + return 0;
> > > + }
> >
> > The polled device core will report initial state when input device is
> > opened (as long as polling is enabled) so I removed this cunk and
> > applied the rest.
>
> I looked amended version, it is made incorrectly.
> ...
> + err = input_register_polled_device(poll_dev);
> + if (err)
> + goto out_err;
> +
> +out_err:
> + input_free_polled_device(poll_dev);
> ...
>
> Should be:
> err = input_register_polled_device(poll_dev);
> if (!err)
> return 0;
Yes, I missed that "return 0;" should be fixed now.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2014-03-31 1:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 18:02 [PATCH v3 1/2] input: Add new driver for ARM CLPS711X keypad Alexander Shiyan
2014-03-28 16:42 ` Dmitry Torokhov
2014-03-28 16:46 ` Alexander Shiyan
2014-03-30 20:19 ` Alexander Shiyan
2014-03-31 1:19 ` Dmitry Torokhov [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=2993844.QDC18iO0r3@dtor-d630.eng.vmware.com \
--to=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=shc_work@mail.ru \
/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).