Re: [Device-drivers-devel] [PATCH 3/3] Input: touchscreen: ad7877 filter events where pressure is beyond the maximum

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

 



On Fri, Oct 15, 2010 at 09:51:12PM -0400, Mike Frysinger wrote:
> On Fri, Oct 15, 2010 at 06:40,  <michael.hennerich@xxxxxxxxxx> wrote:
> > Suppress events where pressure > pressure_max.
> > These events come typically along with inaccurate X and Y samples.
> 
> were you going to commit to the blackfin tree ?
> 
> > --- a/drivers/input/touchscreen/ad7877.c
> > +++ b/drivers/input/touchscreen/ad7877.c
> > @@ -360,6 +360,13 @@ static int ad7877_rx(struct ad7877 *ts)
> >                Rt /= z1;
> >                Rt = (Rt + 2047) >> 12;
> >
> > +               /*
> > +                * Sample found inconsistent, pressure is beyond
> > +                * the maximum. Don't report it to user space.
> > +                */
> > +               if (Rt > ts->pressure_max)
> > +                       return -EINVAL;
> 
> this has spaces in the middle of your tab indents ...

I took care of that on my side...

-- 
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