Skip to content

Commit

Permalink
Input: wm831x-ts - default pressure measurements on
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Dmitry Torokhov committed Mar 13, 2011
1 parent 47340bd commit 23c483d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/input/touchscreen/wm831x-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,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) {
Expand Down

0 comments on commit 23c483d

Please sign in to comment.