Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33064
b: refs/heads/master
c: 168ffc4
h: refs/heads/master
v: v3
  • Loading branch information
Marko Macek authored and Greg Kroah-Hartman committed Aug 2, 2006
1 parent 11821d5 commit e4d61d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 064e875a4cb1dad7b3a00661877fe8cd95d1a59a
refs/heads/master: 168ffc444663e34a20e6d04b6c31e5d495b283fb
5 changes: 2 additions & 3 deletions trunk/drivers/usb/input/ati_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,8 @@ static const char accel[] = { 1, 2, 4, 6, 9, 13, 20 };
* events. The hardware generates 5 events for the first keypress
* and we have to take this into account for an accurate repeat
* behaviour.
* (HZ / 20) == 50 ms and works well for me.
*/
#define FILTER_TIME (HZ / 20)
#define FILTER_TIME 60 /* msec */

struct ati_remote {
struct input_dev *idev;
Expand Down Expand Up @@ -467,7 +466,7 @@ static void ati_remote_input_report(struct urb *urb, struct pt_regs *regs)
/* Filter duplicate events which happen "too close" together. */
if ((ati_remote->old_data[0] == data[1]) &&
(ati_remote->old_data[1] == data[2]) &&
time_before(jiffies, ati_remote->old_jiffies + FILTER_TIME)) {
time_before(jiffies, ati_remote->old_jiffies + msecs_to_jiffies(FILTER_TIME))) {
ati_remote->repeat_count++;
} else {
ati_remote->repeat_count = 0;
Expand Down

0 comments on commit e4d61d7

Please sign in to comment.