Skip to content

Commit

Permalink
Input: fix bug in example code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Whitehouse authored and Dmitry Torokhov committed Jan 21, 2008
1 parent 374766b commit 75570af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/input/input-programming.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 75570af

Please sign in to comment.