Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Steven Whitehouse and committed by
Dmitry Torokhov
75570af1 374766bc

+1 -1
+1 -1
Documentation/input/input-programming.txt
··· 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