aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/joy
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-09-27 08:51:18 +0000
committerEd Schouten <ed@FreeBSD.org>2008-09-27 08:51:18 +0000
commit6bfa9a2d66dd0e00182017d6741d44e54d0b2cca (patch)
treedd0035910760a440d495b23940f57a42ed24ca85 /sys/dev/joy
parent45cfb1dc538113eab50616b88da908b1bb728561 (diff)
Notes
Diffstat (limited to 'sys/dev/joy')
-rw-r--r--sys/dev/joy/joy.c4
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