diff mbox

WM9712 GPIO

Message ID AANLkTikXR3vlUg-XX33LCrAiVxk0nJWNe__7SU7g1DuF@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Manuel Lauss May 12, 2010, 11:47 a.m. UTC
None
diff mbox

Patch

--- a/drivers/input/touchscreen/wm97xx-core.c
+++ b/drivers/input/touchscreen/wm97xx-core.c
@@ -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;