Input: wm9712 - fix wm97xx_set_gpio() logic

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

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Manuel Lauss 2010-05-19 10:11:13 -07:00 committed by Dmitry Torokhov
parent 8d0bc2b456
commit af8b01b039

View File

@ -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;