]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
Input: wm831x-ts - ensure the controller is in a known state on open
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 15 Mar 2011 04:39:09 +0000 (21:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 15 Mar 2011 04:41:29 +0000 (21:41 -0700)
Explicitly set all the enable bits when opening the device just in case
something left the device in an unexpected state.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/wm831x-ts.c

index 3db0c29f3b0542abaf0ad77e8518f7c1763033cf..6ae054f8e0aa50b5e07f7d43f21f582bb19cf98f 100644 (file)
@@ -167,7 +167,9 @@ static int wm831x_ts_input_open(struct input_dev *idev)
        struct wm831x *wm831x = wm831x_ts->wm831x;
 
        wm831x_set_bits(wm831x, WM831X_TOUCH_CONTROL_1,
-                       WM831X_TCH_ENA, WM831X_TCH_ENA);
+                       WM831X_TCH_ENA | WM831X_TCH_CVT_ENA |
+                       WM831X_TCH_X_ENA | WM831X_TCH_Y_ENA |
+                       WM831X_TCH_Z_ENA, WM831X_TCH_ENA);
 
        wm831x_set_bits(wm831x, WM831X_TOUCH_CONTROL_1,
                        WM831X_TCH_CVT_ENA, WM831X_TCH_CVT_ENA);