Skip to content

Commit

Permalink
Input: wm9712 - fix wm97xx_set_gpio() logic
Browse files Browse the repository at this point in the history
WM97XX_GPIO_HIGH is not a bitmap and should to be treated as such.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Manuel Lauss authored and Dmitry Torokhov committed May 19, 2010
1 parent 8d0bc2b commit af8b01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/wm97xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void wm97xx_set_gpio(struct wm97xx *wm, u32 gpio,
mutex_lock(&wm->codec_mutex);
reg = wm97xx_reg_read(wm, AC97_GPIO_STATUS);

if (status & WM97XX_GPIO_HIGH)
if (status == WM97XX_GPIO_HIGH)
reg |= gpio;
else
reg &= ~gpio;
Expand Down

0 comments on commit af8b01b

Please sign in to comment.