summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
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/raidframe
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/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index fc15d1abd97..2fbdf7bb5aa 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.304 2013/05/29 00:47:49 christos Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.305 2014/03/16 05:20:29 dholland Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.304 2013/05/29 00:47:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.305 2014/03/16 05:20:29 dholland Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -205,13 +205,27 @@ dev_type_dump(raiddump);
dev_type_size(raidsize);
const struct bdevsw raid_bdevsw = {
- raidopen, raidclose, raidstrategy, raidioctl,
- raiddump, raidsize, D_DISK
+ .d_open = raidopen,
+ .d_close = raidclose,
+ .d_strategy = raidstrategy,
+ .d_ioctl = raidioctl,
+ .d_dump = raiddump,
+ .d_psize = raidsize,
+ .d_flag = D_DISK
};
const struct cdevsw raid_cdevsw = {
- raidopen, raidclose, raidread, raidwrite, raidioctl,
- nostop, notty, nopoll, nommap, nokqfilter, D_DISK
+ .d_open = raidopen,
+ .d_close = raidclose,
+ .d_read = raidread,
+ .d_write = raidwrite,
+ .d_ioctl = raidioctl,
+ .d_stop = nostop,
+ .d_tty = notty,
+ .d_poll = nopoll,
+ .d_mmap = nommap,
+ .d_kqfilter = nokqfilter,
+ .d_flag = D_DISK
};
static struct dkdriver rf_dkdriver = { raidstrategy, minphys };