summaryrefslogtreecommitdiffstats
path: root/sys/dev/joy/joy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/joy/joy.c')
-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 472985b..762cfd7 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
OpenPOWER on IntegriCloud