Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5443
b: refs/heads/master
c: 6f5eacf
h: refs/heads/master
i:
  5441: 597468f
  5439: 5634742
v: v3
  • Loading branch information
Tobias Klauser authored and Dmitry Torokhov committed Jul 11, 2005
1 parent 6ad1c06 commit 17515d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 6345fdfd190659a2316d18065871245e3a1e0f84
refs/heads/master: 6f5eacfc1e9a12ffca10b4abe8e9fddf1997da6f
6 changes: 2 additions & 4 deletions trunk/drivers/input/joydev.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ MODULE_LICENSE("GPL");
#define JOYDEV_MINORS 16
#define JOYDEV_BUFFER_SIZE 64

#define MSECS(t) (1000 * ((t) / HZ) + 1000 * ((t) % HZ) / HZ)

struct joydev {
int exist;
int open;
Expand Down Expand Up @@ -117,7 +115,7 @@ static void joydev_event(struct input_handle *handle, unsigned int type, unsigne
return;
}

event.time = MSECS(jiffies);
event.time = jiffies_to_msecs(jiffies);

list_for_each_entry(list, &joydev->list, node) {

Expand Down Expand Up @@ -245,7 +243,7 @@ static ssize_t joydev_read(struct file *file, char __user *buf, size_t count, lo

struct js_event event;

event.time = MSECS(jiffies);
event.time = jiffies_to_msecs(jiffies);

if (list->startup < joydev->nkey) {
event.type = JS_EVENT_BUTTON | JS_EVENT_INIT;
Expand Down

0 comments on commit 17515d8

Please sign in to comment.