]> err.no Git - linux-2.6/commitdiff
Input: fix bug in example code
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 27 Nov 2007 05:45:34 +0000 (00:45 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Jan 2008 06:11:07 +0000 (01:11 -0500)
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>
Documentation/input/input-programming.txt

index 47fc86830cd7691a5ea256a971065393d422f9b8..81905e81585e2de04f9b80a658fb087013acd147 100644 (file)
@@ -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);
 }