summaryrefslogtreecommitdiffstats
path: root/sys/dev/smbus
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/smbus
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/smbus')
-rw-r--r--sys/dev/smbus/smb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c
index c8edb93..4c1c5b1 100644
--- a/sys/dev/smbus/smb.c
+++ b/sys/dev/smbus/smb.c
@@ -46,7 +46,7 @@
struct smb_softc {
int sc_count; /* >0 if device opened */
- dev_t sc_devnode;
+ struct cdev *sc_devnode;
};
#define IIC_SOFTC(unit) \
@@ -137,7 +137,7 @@ smb_detach(device_t dev)
}
static int
-smbopen (dev_t dev, int flags, int fmt, struct thread *td)
+smbopen (struct cdev *dev, int flags, int fmt, struct thread *td)
{
struct smb_softc *sc = IIC_SOFTC(minor(dev));
@@ -153,7 +153,7 @@ smbopen (dev_t dev, int flags, int fmt, struct thread *td)
}
static int
-smbclose(dev_t dev, int flags, int fmt, struct thread *td)
+smbclose(struct cdev *dev, int flags, int fmt, struct thread *td)
{
struct smb_softc *sc = IIC_SOFTC(minor(dev));
@@ -170,7 +170,7 @@ smbclose(dev_t dev, int flags, int fmt, struct thread *td)
}
static int
-smbioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td)
+smbioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *td)
{
char buf[SMB_MAXBLOCKSIZE];
device_t parent;
OpenPOWER on IntegriCloud