Skip to content

Commit

Permalink
Input: lm8323 - fix checking PWM interrupt status
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nickolai Zeldovich authored and Dmitry Torokhov committed Jan 6, 2013
1 parent e324ce6 commit bec7a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/lm8323.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit bec7a4b

Please sign in to comment.