mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
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>
This commit is contained in:
parent
47340bd9fe
commit
23c483d29f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user