aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-12 23:48:34 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-03-12 23:49:07 -0500
commit23c483d29fcbc35591131019660b2630cc6629ae (patch)
treef55950884bec924bc62930938626f0f934e2ed8c /drivers/input
parent47340bd9fefb571888836da942b5aee0e85e959c (diff)
Input: wm831x-ts - default pressure measurements on
tslib expects pressure measurements so enable them by default for better compatibility. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/wm831x-ts.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/wm831x-ts.c b/drivers/input/touchscreen/wm831x-ts.c
index 1022f715d3c2..3db0c29f3b05 100644
--- a/drivers/input/touchscreen/wm831x-ts.c
+++ b/drivers/input/touchscreen/wm831x-ts.c
@@ -225,7 +225,10 @@ static __devinit int wm831x_ts_probe(struct platform_device *pdev)
225 else 225 else
226 wm831x_ts->pd_irq = platform_get_irq_byname(pdev, "TCHPD"); 226 wm831x_ts->pd_irq = platform_get_irq_byname(pdev, "TCHPD");
227 227
228 wm831x_ts->pressure = pdata && pdata->pressure; 228 if (pdata)
229 wm831x_ts->pressure = pdata->pressure;
230 else
231 wm831x_ts->pressure = true;
229 232
230 /* Five wire touchscreens can't report pressure */ 233 /* Five wire touchscreens can't report pressure */
231 if (pdata && pdata->fivewire) { 234 if (pdata && pdata->fivewire) {