Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119338
b: refs/heads/master
c: 4f48544
h: refs/heads/master
v: v3
  • Loading branch information
Dmitri Vorobiev authored and Dmitry Torokhov committed Nov 11, 2008
1 parent 4e8c8f2 commit 0d4453e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5fb17fd9a2d05be77be91369aa2f7b0db42fc8b4
refs/heads/master: 4f485447973284f73e4e7cac3ab1d1e5fcd8aece
3 changes: 2 additions & 1 deletion trunk/Documentation/input/input-programming.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ pressed or released a BUTTON_IRQ happens. The driver could look like:

static struct input_dev *button_dev;

static void button_interrupt(int irq, void *dummy, struct pt_regs *fp)
static irqreturn_t button_interrupt(int irq, void *dummy)
{
input_report_key(button_dev, BTN_0, inb(BUTTON_PORT) & 1);
input_sync(button_dev);
return IRQ_HANDLED;
}

static int __init button_init(void)
Expand Down

0 comments on commit 0d4453e

Please sign in to comment.