From aab0b129cc73f7f01fad3a05fe61f03525087783 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 16 Dec 2014 14:22:27 +0800 Subject: gpio: sx150x: Fix comparing wrong value with chip->irq_masked Fix a copy-paste bug. Signed-off-by: Axel Lin Reviewed-by: Alexandre Courbot Signed-off-by: Linus Walleij --- drivers/gpio/gpio-sx150x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpio/gpio-sx150x.c') 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; -- cgit v1.2.3