summaryrefslogtreecommitdiffstats
path: root/Documentation/input/input-programming.txt
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2007-11-27 00:45:34 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-01-21 01:11:07 -0500
commit75570af1504141316c22dfb6796cd13bf5b11fd2 (patch)
tree5eccbf1bfcb2837e5b0969e3de18024c6de3dbae /Documentation/input/input-programming.txt
parent374766bc2aa784f7a0833cc7563f057241ca7815 (diff)
downloadop-kernel-dev-75570af1504141316c22dfb6796cd13bf5b11fd2.zip
op-kernel-dev-75570af1504141316c22dfb6796cd13bf5b11fd2.tar.gz
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>
Diffstat (limited to 'Documentation/input/input-programming.txt')
-rw-r--r--Documentation/input/input-programming.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/input/input-programming.txt b/Documentation/input/input-programming.txt
index 47fc868..81905e8 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);
}
OpenPOWER on IntegriCloud