Commit 75570af1504141316c22dfb6796cd13bf5b11fd2

Authored by Steven Whitehouse
Committed by Dmitry Torokhov
1 parent 374766bc2a

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: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

Documentation/input/input-programming.txt
... ... @@ -22,7 +22,7 @@
22 22  
23 23 static void button_interrupt(int irq, void *dummy, struct pt_regs *fp)
24 24 {
25   - input_report_key(button_dev, BTN_1, inb(BUTTON_PORT) & 1);
  25 + input_report_key(button_dev, BTN_0, inb(BUTTON_PORT) & 1);
26 26 input_sync(button_dev);
27 27 }
28 28