diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-12-16 14:22:27 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-01-15 17:23:20 +0100 |
commit | aab0b129cc73f7f01fad3a05fe61f03525087783 (patch) | |
tree | b382b1c4df3415c152bde3e1b56591396e80664f /drivers/gpio | |
parent | d3c2155ce5889731de5d18c53f7fbde2d1b87e00 (diff) | |
download | linux-aab0b129cc73f7f01fad3a05fe61f03525087783.tar.gz linux-aab0b129cc73f7f01fad3a05fe61f03525087783.tar.bz2 linux-aab0b129cc73f7f01fad3a05fe61f03525087783.zip |
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-sx150x.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |