Skip to content

Commit

Permalink
Input: wm831x-ts - ensure the controller is in a known state on open
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Dmitry Torokhov committed Mar 15, 2011
1 parent bd7e4e8 commit e7cbb90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/input/touchscreen/wm831x-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e7cbb90

Please sign in to comment.