summaryrefslogtreecommitdiffstats
path: root/sys/dev/iicbus
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/iicbus
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/iicbus')
-rw-r--r--sys/dev/iicbus/iic.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/iicbus/iic.c b/sys/dev/iicbus/iic.c
index 37c2b61..3a879d8 100644
--- a/sys/dev/iicbus/iic.c
+++ b/sys/dev/iicbus/iic.c
@@ -52,7 +52,7 @@ struct iic_softc {
char sc_buffer[BUFSIZE]; /* output buffer */
char sc_inbuf[BUFSIZE]; /* input buffer */
- dev_t sc_devnode;
+ struct cdev *sc_devnode;
};
#define IIC_SOFTC(unit) \
@@ -146,7 +146,7 @@ iic_detach(device_t dev)
}
static int
-iicopen (dev_t dev, int flags, int fmt, struct thread *td)
+iicopen (struct cdev *dev, int flags, int fmt, struct thread *td)
{
struct iic_softc *sc = IIC_SOFTC(minor(dev));
@@ -162,7 +162,7 @@ iicopen (dev_t dev, int flags, int fmt, struct thread *td)
}
static int
-iicclose(dev_t dev, int flags, int fmt, struct thread *td)
+iicclose(struct cdev *dev, int flags, int fmt, struct thread *td)
{
struct iic_softc *sc = IIC_SOFTC(minor(dev));
@@ -181,7 +181,7 @@ iicclose(dev_t dev, int flags, int fmt, struct thread *td)
}
static int
-iicwrite(dev_t dev, struct uio * uio, int ioflag)
+iicwrite(struct cdev *dev, struct uio * uio, int ioflag)
{
device_t iicdev = IIC_DEVICE(minor(dev));
struct iic_softc *sc = IIC_SOFTC(minor(dev));
@@ -208,7 +208,7 @@ iicwrite(dev_t dev, struct uio * uio, int ioflag)
}
static int
-iicread(dev_t dev, struct uio * uio, int ioflag)
+iicread(struct cdev *dev, struct uio * uio, int ioflag)
{
device_t iicdev = IIC_DEVICE(minor(dev));
struct iic_softc *sc = IIC_SOFTC(minor(dev));
@@ -240,7 +240,7 @@ iicread(dev_t dev, struct uio * uio, int ioflag)
}
static int
-iicioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td)
+iicioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *td)
{
device_t iicdev = IIC_DEVICE(minor(dev));
struct iic_softc *sc = IIC_SOFTC(minor(dev));
OpenPOWER on IntegriCloud