mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
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:
parent
d3c2155ce5
commit
aab0b129cc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user