Commit aab0b129 authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij

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

Fix a copy-paste bug.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d3c2155c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment