diff mbox

Input: wm831x-ts - Default pressure measurements on

Message ID 1299679112-15245-1-git-send-email-broonie@opensource.wolfsonmicro.com (mailing list archive)
State Accepted
Commit 23c483d29fcbc35591131019660b2630cc6629ae
Headers show

Commit Message

Mark Brown March 9, 2011, 1:58 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/touchscreen/wm831x-ts.c b/drivers/input/touchscreen/wm831x-ts.c
index 3c397c8..560200d 100644
--- a/drivers/input/touchscreen/wm831x-ts.c
+++ b/drivers/input/touchscreen/wm831x-ts.c
@@ -259,7 +259,10 @@  static __devinit int wm831x_ts_probe(struct platform_device *pdev)
 	else
 		wm831x_ts->pd_irq = platform_get_irq_byname(pdev, "TCHPD");
 
-	wm831x_ts->pressure = pdata && pdata->pressure;
+	if (pdata)
+		wm831x_ts->pressure = pdata->pressure;
+	else
+		wm831x_ts->pressure = true;
 
 	/* Five wire touchscreens can't report pressure */
 	if (pdata && pdata->fivewire) {