Commit 6121c72c authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Vojtech Pavlik

input: atkbd - "scroll" is a per-device attribute, don't use global

       flag in interrupt handler.
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
parent e3a0985d
......@@ -405,7 +405,7 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data,
atkbd_report_key(&atkbd->dev, regs, atkbd->keycode[code], value);
}
if (atkbd_scroll) {
if (atkbd->scroll) {
input_regs(&atkbd->dev, regs);
if (click != -1)
input_report_key(&atkbd->dev, BTN_MIDDLE, click);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment