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>
else
wm831x_ts->pd_irq = platform_get_irq_byname(pdev, "TCHPD");
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) {
/* Five wire touchscreens can't report pressure */
if (pdata && pdata->fivewire) {