Re: ads7846 touchscreen: fix pressure

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

 



Hi Pavel,

On Wed, Oct 7, 2009 at 1:24 AM, Pavel Machek <pavel@xxxxxx> wrote:
>
> On Zaurus, pressure is reported inverted -- the lighter the pressure,
> the bigger numerical value. This should fix it.
>
> Signed-off-by: Pavel Machek <pavel@xxxxxx>
>
> --- linux-rc/drivers/input.ofic/touchscreen/ads7846.c   2009-10-06 13:49:56.000000000 +0200
> +++ linux-rc/drivers/input/touchscreen/ads7846.c        2009-10-06 21:18:25.000000000 +0200
> @@ -608,12 +609,12 @@
>
>                input_report_abs(input, ABS_X, x);
>                input_report_abs(input, ABS_Y, y);
> -               input_report_abs(input, ABS_PRESSURE, Rt);
> +               input_report_abs(input, ABS_PRESSURE, ts->pressure_max-Rt);

but same behavior is seen by others using this chip on different
boards? If not, this has to be done through platform data.

-- 
---Trilok Soni
http://triloksoni.wordpress.com
http://www.linkedin.com/in/triloksoni
--
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