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>
This commit is contained in:
Axel Lin 2014-12-16 14:22:27 +08:00 committed by Linus Walleij
parent d3c2155ce5
commit aab0b129cc

View 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;