diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2010-05-19 13:11:13 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-05-19 13:13:35 -0400 |
commit | af8b01b03941e6b008d63b42c0433699c3d3d184 (patch) | |
tree | 4887d7494ea3f6b5f3c5d2f1b83864eec8d6fca1 /drivers/input | |
parent | 8d0bc2b456103a34c11e01305cd1aed1cde579e5 (diff) |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/wm97xx-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
200 | mutex_lock(&wm->codec_mutex); | 200 | mutex_lock(&wm->codec_mutex); |
201 | reg = wm97xx_reg_read(wm, AC97_GPIO_STATUS); | 201 | reg = wm97xx_reg_read(wm, AC97_GPIO_STATUS); |
202 | 202 | ||
203 | if (status & WM97XX_GPIO_HIGH) | 203 | if (status == WM97XX_GPIO_HIGH) |
204 | reg |= gpio; | 204 | reg |= gpio; |
205 | else | 205 | else |
206 | reg &= ~gpio; | 206 | reg &= ~gpio; |