Re: [PATCH v3 1/2] input: Add new driver for ARM CLPS711X keypad

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, March 31, 2014 12:19:35 AM Alexander Shiyan wrote:
> Fri, 28 Mar 2014 09:42:28 -0700 от Dmitry Torokhov 
<dmitry.torokhov@xxxxxxxxx>:
> > 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux