gpio: sx150x: Fix comparing wrong value with chip->irq_masked
authorAxel Lin <axel.lin@ingics.com>
Tue, 16 Dec 2014 06:22:27 +0000 (14:22 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jan 2015 16:23:20 +0000 (17:23 +0100)
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>
drivers/gpio/gpio-sx150x.c

index b32fb38ac5c9cb86715d54d1c2c12a37bbae3e43..20573ac714fc1dfe0620025046050520428379f4 100644 (file)
@@ -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;