summaryrefslogtreecommitdiffstats
path: root/sys/dev/joy/joy.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
committerphk <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
commitdfd1f7fd50fffaf75541921fcf86454cd8eb3614 (patch)
tree624c885995e84df6decddd3291c60a15e50e3c85 /sys/dev/joy/joy.c
parentcafb94bcea1cdf048e81b7eb2d24808e1a8c5280 (diff)
downloadFreeBSD-src-dfd1f7fd50fffaf75541921fcf86454cd8eb3614.zip
FreeBSD-src-dfd1f7fd50fffaf75541921fcf86454cd8eb3614.tar.gz
Do the dreaded s/dev_t/struct cdev */
Bump __FreeBSD_version accordingly.
Diffstat (limited to 'sys/dev/joy/joy.c')
-rw-r--r--sys/dev/joy/joy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/joy/joy.c b/sys/dev/joy/joy.c
index 0b4efe7..0568feb 100644
--- a/sys/dev/joy/joy.c
+++ b/sys/dev/joy/joy.c
@@ -128,7 +128,7 @@ joy_detach(device_t dev)
static int
-joyopen(dev_t dev, int flags, int fmt, struct thread *td)
+joyopen(struct cdev *dev, int flags, int fmt, struct thread *td)
{
int i = joypart (dev);
struct joy_softc *joy = JOY_SOFTC(UNIT(dev));
@@ -141,7 +141,7 @@ joyopen(dev_t dev, int flags, int fmt, struct thread *td)
}
static int
-joyclose(dev_t dev, int flags, int fmt, struct thread *td)
+joyclose(struct cdev *dev, int flags, int fmt, struct thread *td)
{
int i = joypart (dev);
struct joy_softc *joy = JOY_SOFTC(UNIT(dev));
@@ -151,7 +151,7 @@ joyclose(dev_t dev, int flags, int fmt, struct thread *td)
}
static int
-joyread(dev_t dev, struct uio *uio, int flag)
+joyread(struct cdev *dev, struct uio *uio, int flag)
{
struct joy_softc *joy = JOY_SOFTC(UNIT(dev));
bus_space_handle_t port = joy->port;
@@ -209,7 +209,7 @@ joyread(dev_t dev, struct uio *uio, int flag)
}
static int
-joyioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
+joyioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td)
{
struct joy_softc *joy = JOY_SOFTC(UNIT(dev));
int i = joypart (dev);
OpenPOWER on IntegriCloud