* Doc bug in example input driver
@ 2007-11-26 17:29 Steven Whitehouse
2007-11-27 5:56 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Steven Whitehouse @ 2007-11-26 17:29 UTC (permalink / raw)
To: dmitry.torokhov; +Cc: linux-input
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>
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);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-27 5:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-26 17:29 Doc bug in example input driver Steven Whitehouse
2007-11-27 5:56 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).