Commit 75570af1 authored by Steven Whitehouse's avatar Steven Whitehouse Committed by 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: default avatarSteven Whitehouse <swhiteho@redhat.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 374766bc
...@@ -22,7 +22,7 @@ static struct input_dev *button_dev; ...@@ -22,7 +22,7 @@ static struct input_dev *button_dev;
static void button_interrupt(int irq, void *dummy, struct pt_regs *fp) 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); input_sync(button_dev);
} }
......
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