diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-03-12 20:48:34 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-03-12 20:49:07 -0800 |
commit | 23c483d29fcbc35591131019660b2630cc6629ae (patch) | |
tree | f55950884bec924bc62930938626f0f934e2ed8c | |
parent | 47340bd9fefb571888836da942b5aee0e85e959c (diff) | |
download | linux-3.10-23c483d29fcbc35591131019660b2630cc6629ae.tar.gz linux-3.10-23c483d29fcbc35591131019660b2630cc6629ae.tar.bz2 linux-3.10-23c483d29fcbc35591131019660b2630cc6629ae.zip |
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>
-rw-r--r-- | drivers/input/touchscreen/wm831x-ts.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/wm831x-ts.c b/drivers/input/touchscreen/wm831x-ts.c index 1022f715d3c..3db0c29f3b0 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) 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) { |