summaryrefslogtreecommitdiffstats
path: root/sys/dev/smbus/smb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/smbus/smb.c')
-rw-r--r--sys/dev/smbus/smb.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c
index 392594f..1272c13 100644
--- a/sys/dev/smbus/smb.c
+++ b/sys/dev/smbus/smb.c
@@ -89,19 +89,13 @@ static d_ioctl_t smbioctl;
#define CDEV_MAJOR 106
static struct cdevsw smb_cdevsw = {
- /* open */ smbopen,
- /* close */ smbclose,
- /* read */ smbread,
- /* write */ smbwrite,
- /* ioctl */ smbioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "smb",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = smbopen,
+ .d_close = smbclose,
+ .d_read = smbread,
+ .d_write = smbwrite,
+ .d_ioctl = smbioctl,
+ .d_name = "smb",
+ .d_maj = CDEV_MAJOR,
};
static void
OpenPOWER on IntegriCloud