Skip to contentSkip to conversation

spitz: fix touchscreen max presure

PATCH New akpm at linux-foundation.org 1 participant 1 message Sep 18, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 spitz: fix touchscreen max presure

From: Pavel Machek <[email protected]>

This fixes max_pressure for spitz's touchscreen, and is requirement for getting reasonable pressure numbers from touchscreen driver.

---

 arch/arm/mach-pxa/spitz.c |    1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-pxa/spitz.c renamed from arch/arm/mach-pxa/spitz.c~spitz-fix-touchscreen-max-presure +1 -0
diff -puN arch/arm/mach-pxa/spitz.c~spitz-fix-touchscreen-max-presure arch/arm/mach-pxa/spitz.c
@@ -296,6 +296,7 @@ static struct ads7846_platform_data spit
 	.vref_delay_usecs	= 100,
 	.x_plate_ohms		= 419,
 	.y_plate_ohms		= 486,
+	.pressure_max		= 1024,
 	.gpio_pendown		= SPITZ_GPIO_TP_INT,
 	.wait_for_sync		= spitz_wait_for_hsync,
 };

_