summaryrefslogtreecommitdiffstats
path: root/sys/dev/scd/scd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/scd/scd.c')
-rw-r--r--sys/dev/scd/scd.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c
index dfa13bb..88e4d07 100644
--- a/sys/dev/scd/scd.c
+++ b/sys/dev/scd/scd.c
@@ -146,19 +146,14 @@ static d_strategy_t scdstrategy;
#define CDEV_MAJOR 45
static struct cdevsw scd_cdevsw = {
- /* open */ scdopen,
- /* close */ scdclose,
- /* read */ physread,
- /* write */ nowrite,
- /* ioctl */ scdioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ scdstrategy,
- /* name */ "scd",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ D_DISK,
+ .d_open = scdopen,
+ .d_close = scdclose,
+ .d_read = physread,
+ .d_ioctl = scdioctl,
+ .d_strategy = scdstrategy,
+ .d_name = "scd",
+ .d_maj = CDEV_MAJOR,
+ .d_flags = D_DISK,
};
int
OpenPOWER on IntegriCloud