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

Commit bec7a4bb authored by Nickolai Zeldovich's avatar Nickolai Zeldovich Committed by Dmitry Torokhov
Browse files

Input: lm8323 - fix checking PWM interrupt status



INT_PWM1 is already a bitmask, not the bit number, so shifting by INT_PWM1 is
incorrect.

Signed-off-by: default avatarNickolai Zeldovich <nickolai@csail.mit.edu>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent e324ce61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -398,7 +398,7 @@ static irqreturn_t lm8323_irq(int irq, void *_lm)
			lm8323_configure(lm);
		}
		for (i = 0; i < LM8323_NUM_PWMS; i++) {
			if (ints & (1 << (INT_PWM1 + i))) {
			if (ints & (INT_PWM1 << i)) {
				dev_vdbg(&lm->client->dev,
					 "pwm%d engine completed\n", i);
				pwm_done(&lm->pwm[i]);