summaryrefslogtreecommitdiff
path: root/sys/dev/clockctl.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-16 05:20:22 +0000
committerdholland <dholland@NetBSD.org>2014-03-16 05:20:22 +0000
commit76258fa0fe68b72536361d37e7b733d8bb10b786 (patch)
treee8334d8baca3ac8a5d20fc7647d104a782381607 /sys/dev/clockctl.c
parent1ccd73de606f245b810e292b6739d955a4f27d56 (diff)
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
Diffstat (limited to 'sys/dev/clockctl.c')
-rw-r--r--sys/dev/clockctl.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/dev/clockctl.c b/sys/dev/clockctl.c
index 0d52f72e576..9c3745e69fa 100644
--- a/sys/dev/clockctl.c
+++ b/sys/dev/clockctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: clockctl.c,v 1.30 2012/10/27 17:18:14 chs Exp $ */
+/* $NetBSD: clockctl.c,v 1.31 2014/03/16 05:20:26 dholland Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clockctl.c,v 1.30 2012/10/27 17:18:14 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clockctl.c,v 1.31 2014/03/16 05:20:26 dholland Exp $");
#include "opt_ntp.h"
#include "opt_compat_netbsd.h"
@@ -57,8 +57,17 @@ __KERNEL_RCSID(0, "$NetBSD: clockctl.c,v 1.30 2012/10/27 17:18:14 chs Exp $");
dev_type_ioctl(clockctlioctl);
const struct cdevsw clockctl_cdevsw = {
- nullopen, nullclose, noread, nowrite, clockctlioctl,
- nostop, notty, nopoll, nommap, nokqfilter, D_OTHER,
+ .d_open = nullopen,
+ .d_close = nullclose,
+ .d_read = noread,
+ .d_write = nowrite,
+ .d_ioctl = clockctlioctl,
+ .d_stop = nostop,
+ .d_tty = notty,
+ .d_poll = nopoll,
+ .d_mmap = nommap,
+ .d_kqfilter = nokqfilter,
+ .d_flag = D_OTHER,
};
static kauth_listener_t clockctl_listener;