Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143133
b: refs/heads/master
c: e7b5c1e
h: refs/heads/master
i:
  143131: e0a1c8c
v: v3
  • Loading branch information
Johannes Berg authored and Dmitry Torokhov committed Jan 30, 2009
1 parent 9dba04d commit b30555f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b0ee0d3eb31a163c958f2960906c44bcdfdc607b
refs/heads/master: e7b5c1ef4d87426da0b689a0a4fa67edda02ea5c
7 changes: 7 additions & 0 deletions trunk/drivers/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ static void input_start_autorepeat(struct input_dev *dev, int code)
}
}

static void input_stop_autorepeat(struct input_dev *dev)
{
del_timer(&dev->timer);
}

#define INPUT_IGNORE_EVENT 0
#define INPUT_PASS_TO_HANDLERS 1
#define INPUT_PASS_TO_DEVICE 2
Expand Down Expand Up @@ -167,6 +172,8 @@ static void input_handle_event(struct input_dev *dev,
__change_bit(code, dev->key);
if (value)
input_start_autorepeat(dev, code);
else
input_stop_autorepeat(dev);
}

disposition = INPUT_PASS_TO_HANDLERS;
Expand Down

0 comments on commit b30555f

Please sign in to comment.