summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus/pps.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ppbus/pps.c')
-rw-r--r--sys/dev/ppbus/pps.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/sys/dev/ppbus/pps.c b/sys/dev/ppbus/pps.c
index a142e3b..b1192a5 100644
--- a/sys/dev/ppbus/pps.c
+++ b/sys/dev/ppbus/pps.c
@@ -62,19 +62,11 @@ static d_ioctl_t ppsioctl;
#define CDEV_MAJOR 89
static struct cdevsw pps_cdevsw = {
- /* open */ ppsopen,
- /* close */ ppsclose,
- /* read */ noread,
- /* write */ nowrite,
- /* ioctl */ ppsioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ PPS_NAME,
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = ppsopen,
+ .d_close = ppsclose,
+ .d_ioctl = ppsioctl,
+ .d_name = PPS_NAME,
+ .d_maj = CDEV_MAJOR,
};
static void
OpenPOWER on IntegriCloud