提交 75570af1 编写于 作者: S Steven Whitehouse 提交者: Dmitry Torokhov

Input: fix bug in example code

The input example driver uses BTN_0 in the later stages of the
example, so this changes the interrupt routine to match.
Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 374766bc
......@@ -22,7 +22,7 @@ static struct input_dev *button_dev;
static void button_interrupt(int irq, void *dummy, struct pt_regs *fp)
{
input_report_key(button_dev, BTN_1, inb(BUTTON_PORT) & 1);
input_report_key(button_dev, BTN_0, inb(BUTTON_PORT) & 1);
input_sync(button_dev);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册