Browse Source

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>
Axel Lin 10 years ago
parent
commit
aab0b129cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpio/gpio-sx150x.c

+ 1 - 1
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 */
 	/* Avoid updates if nothing changed */
 	if (chip->dev_sense == chip->irq_sense &&
 	if (chip->dev_sense == chip->irq_sense &&
-	    chip->dev_sense == chip->irq_masked)
+	    chip->dev_masked == chip->irq_masked)
 		goto out;
 		goto out;
 
 
 	chip->dev_sense = chip->irq_sense;
 	chip->dev_sense = chip->irq_sense;