Re: [PATCH v2 1/2] Input: tsc2007 - convert to GPIO descriptors

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

 



On Tue, Mar 9, 2021 at 12:27 AM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
> On Mon, Mar 08, 2021 at 11:55:07PM +0200, Andy Shevchenko wrote:

...

> > +     ts->get_pendown_state = tsc2007_get_pendown_state_gpio;
>
> OK, I know what my concern was here. You are now assigning
> ts->get_pendown_state unconditionally, and with ts->gpiod being NULL it
> will always return false, whereas the old code would skip setting
> ts->get_pendown_state when GPIO is not available, and the driver would
> assume that on interrupt the pen is actually down.

Good catch!
I fixed this in v3 (left original conditional, if we want to drop the
warning, then we may do it in a separate change).

-- 
With Best Regards,
Andy Shevchenko



[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