From: Steven Whitehouse Date: Tue, 27 Nov 2007 05:45:34 +0000 (-0500) Subject: Input: fix bug in example code X-Git-Tag: v2.6.25-rc1~291^2~16 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75570af1504141316c22dfb6796cd13bf5b11fd2;p=linux-2.6 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 Signed-off-by: Dmitry Torokhov --- diff --git a/Documentation/input/input-programming.txt b/Documentation/input/input-programming.txt index 47fc86830c..81905e8158 100644 --- a/Documentation/input/input-programming.txt +++ b/Documentation/input/input-programming.txt @@ -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); }