diff options
author | phk <phk@FreeBSD.org> | 2004-06-16 09:47:26 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-16 09:47:26 +0000 |
commit | dfd1f7fd50fffaf75541921fcf86454cd8eb3614 (patch) | |
tree | 624c885995e84df6decddd3291c60a15e50e3c85 /sys/dev/mcd | |
parent | cafb94bcea1cdf048e81b7eb2d24808e1a8c5280 (diff) | |
download | FreeBSD-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/mcd')
-rw-r--r-- | sys/dev/mcd/mcd.c | 10 | ||||
-rw-r--r-- | sys/dev/mcd/mcdvar.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index ebc233e..4f09744 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -153,7 +153,7 @@ static int mcd_pause(struct mcd_softc *); static int mcd_resume(struct mcd_softc *); static int mcd_lock_door(struct mcd_softc *, int lock); static int mcd_close_tray(struct mcd_softc *); -static int mcd_size(dev_t dev); +static int mcd_size(struct cdev *dev); static d_open_t mcdopen; static d_close_t mcdclose; @@ -211,7 +211,7 @@ mcd_attach(struct mcd_softc *sc) } static int -mcdopen(dev_t dev, int flags, int fmt, struct thread *td) +mcdopen(struct cdev *dev, int flags, int fmt, struct thread *td) { struct mcd_softc *sc; int r,retry; @@ -271,7 +271,7 @@ mcdopen(dev_t dev, int flags, int fmt, struct thread *td) } static int -mcdclose(dev_t dev, int flags, int fmt, struct thread *td) +mcdclose(struct cdev *dev, int flags, int fmt, struct thread *td) { struct mcd_softc *sc; @@ -368,7 +368,7 @@ mcd_start(struct mcd_softc *sc) } static int -mcdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td) +mcdioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct thread *td) { struct mcd_softc *sc; int retry,r; @@ -466,7 +466,7 @@ MCD_TRACE("ioctl called 0x%lx\n", cmd); } static int -mcd_size(dev_t dev) +mcd_size(struct cdev *dev) { struct mcd_softc *sc; int size; diff --git a/sys/dev/mcd/mcdvar.h b/sys/dev/mcd/mcdvar.h index 9f81ced..adfd4a4 100644 --- a/sys/dev/mcd/mcdvar.h +++ b/sys/dev/mcd/mcdvar.h @@ -35,7 +35,7 @@ struct mcd_data { struct mcd_softc { device_t dev; - dev_t mcd_dev_t; + struct cdev *mcd_dev_t; int debug; struct resource * port; |