From: Manuel Lauss Date: Wed, 19 May 2010 17:11:13 +0000 (-0700) Subject: Input: wm9712 - fix wm97xx_set_gpio() logic X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af8b01b03941e6b008d63b42c0433699c3d3d184;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/input/touchscreen/wm97xx-core.c b/drivers/input/touchscreen/wm97xx-core.c index 5109bf3dd858..cbfef1ea7e30 100644 --- 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;