gpio: sx150x: Fix comparing wrong value with chip->irq_masked
[deliverable/linux.git] / 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;
This page took 0.026606 seconds and 5 git commands to generate.