summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-sx150x.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-12-16 07:22:27 +0100
committerLinus Walleij <linus.walleij@linaro.org>2015-01-15 17:23:20 +0100
commitaab0b129cc73f7f01fad3a05fe61f03525087783 (patch)
treeb382b1c4df3415c152bde3e1b56591396e80664f /drivers/gpio/gpio-sx150x.c
parentgpio: grgpio: off by one in grgpio_to_irq() (diff)
downloadlinux-aab0b129cc73f7f01fad3a05fe61f03525087783.tar.xz
linux-aab0b129cc73f7f01fad3a05fe61f03525087783.zip
gpio: sx150x: Fix comparing wrong value with chip->irq_masked
Fix a copy-paste bug. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-sx150x.c')
-rw-r--r--drivers/gpio/gpio-sx150x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-sx150x.c b/drivers/gpio/gpio-sx150x.c
index b32fb38ac5c9..20573ac714fc 100644
--- a/drivers/gpio/gpio-sx150x.c
+++ b/drivers/gpio/gpio-sx150x.c
@@ -436,7 +436,7 @@ static void sx150x_irq_bus_sync_unlock(struct irq_data *d)
/* Avoid updates if nothing changed */
if (chip->dev_sense == chip->irq_sense &&
- chip->dev_sense == chip->irq_masked)
+ chip->dev_masked == chip->irq_masked)
goto out;
chip->dev_sense = chip->irq_sense;