Skip to content
Snippets Groups Projects
Commit af8b01b0 authored by Manuel Lauss's avatar Manuel Lauss Committed by Dmitry Torokhov
Browse files

Input: wm9712 - fix wm97xx_set_gpio() logic


WM97XX_GPIO_HIGH is not a bitmap and should to be treated as such.

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 8d0bc2b4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment