summaryrefslogtreecommitdiff
path: root/sys/dev/dec
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/dec
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/dec')
-rw-r--r--sys/dev/dec/dz.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/dev/dec/dz.c b/sys/dev/dec/dz.c
index 4d9b6d27667..fd9e0de0985 100644
--- a/sys/dev/dec/dz.c
+++ b/sys/dev/dec/dz.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dz.c,v 1.40 2011/04/24 16:26:59 rmind Exp $ */
+/* $NetBSD: dz.c,v 1.41 2014/03/16 05:20:27 dholland Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.40 2011/04/24 16:26:59 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.41 2014/03/16 05:20:27 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -187,8 +187,17 @@ static dev_type_tty(dztty);
static dev_type_poll(dzpoll);
const struct cdevsw dz_cdevsw = {
- dzopen, dzclose, dzread, dzwrite, dzioctl,
- dzstop, dztty, dzpoll, nommap, ttykqfilter, D_TTY
+ .d_open = dzopen,
+ .d_close = dzclose,
+ .d_read = dzread,
+ .d_write = dzwrite,
+ .d_ioctl = dzioctl,
+ .d_stop = dzstop,
+ .d_tty = dztty,
+ .d_poll = dzpoll,
+ .d_mmap = nommap,
+ .d_kqfilter = ttykqfilter,
+ .d_flag = D_TTY
};
/*