Skip to content

Commit bec7a4b

Browse files
zeldovichdtor
authored andcommitted
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: Nickolai Zeldovich <nickolai@csail.mit.edu> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent e324ce6 commit bec7a4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/keyboard/lm8323.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ static irqreturn_t lm8323_irq(int irq, void *_lm)
398398
lm8323_configure(lm);
399399
}
400400
for (i = 0; i < LM8323_NUM_PWMS; i++) {
401-
if (ints & (1 << (INT_PWM1 + i))) {
401+
if (ints & (INT_PWM1 << i)) {
402402
dev_vdbg(&lm->client->dev,
403403
"pwm%d engine completed\n", i);
404404
pwm_done(&lm->pwm[i]);

0 commit comments

Comments
 (0)