diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2008-09-27 08:51:18 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2008-09-27 08:51:18 +0000 |
| commit | 6bfa9a2d66dd0e00182017d6741d44e54d0b2cca (patch) | |
| tree | dd0035910760a440d495b23940f57a42ed24ca85 /sys/dev/joy | |
| parent | 45cfb1dc538113eab50616b88da908b1bb728561 (diff) | |
Notes
Diffstat (limited to 'sys/dev/joy')
| -rw-r--r-- | sys/dev/joy/joy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/joy/joy.c b/sys/dev/joy/joy.c index 472985b62681..762cfd7a0266 100644 --- a/sys/dev/joy/joy.c +++ b/sys/dev/joy/joy.c @@ -54,8 +54,8 @@ __FBSDID("$FreeBSD$"); * wait until the corresponding bit returns to 0. */ -#define joypart(d) (minor(d)&1) -#define UNIT(d) ((minor(d)>>1)&3) +#define joypart(d) (dev2unit(d)&1) +#define UNIT(d) ((dev2unit(d)>>1)&3) #ifndef JOY_TIMEOUT #define JOY_TIMEOUT 2000 /* 2 milliseconds */ #endif |
