Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;