Skip to contentSkip to conversation

gpio: sx150x: Fix comparing wrong value with chip->irq_masked

PATCH In review Axel Lin 3 participants 3 messages Dec 16, 2014 – Jan 13, 2015 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: sx150x: Fix comparing wrong value with chip->irq_masked

Fix a copy-paste bug.

---
 drivers/gpio/gpio-sx150x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-sx150x.c +1 -1
index bce6c61..6e37257 100644
@@ -401,7 +401,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;
Signature · 1 line
1.9.1