Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Use C99-style initializers for struct dkdriver.
details: https://anonhg.NetBSD.org/src/rev/b387caafe36c
branches: trunk
changeset: 337755:b387caafe36c
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Apr 26 15:15:19 2015 +0000
description:
Use C99-style initializers for struct dkdriver.
diffstat:
sys/arch/acorn32/mainbus/fd.c | 8 +++++---
sys/arch/amiga/dev/fd.c | 8 +++++---
sys/arch/arc/jazz/fd.c | 8 +++++---
sys/arch/atari/dev/fd.c | 8 +++++---
sys/arch/atari/dev/hdfd.c | 8 +++++---
sys/arch/dreamcast/dev/gdrom.c | 8 +++++---
sys/arch/dreamcast/dev/maple/mmemcard.c | 8 +++++---
sys/arch/emips/ebus/ace_ebus.c | 9 ++++++---
sys/arch/emips/ebus/flash_ebus.c | 9 ++++++---
sys/arch/mac68k/obio/iwm_fd.c | 6 +++---
sys/arch/sparc/dev/fd.c | 8 +++++---
sys/arch/sparc64/dev/fdc.c | 8 +++++---
sys/arch/sun3/dev/fd.c | 8 +++++---
sys/arch/sun3/dev/xd.c | 8 +++++---
sys/arch/sun3/dev/xy.c | 8 +++++---
sys/arch/x68k/dev/bmd.c | 8 +++++---
sys/arch/x68k/dev/fd.c | 8 +++++---
sys/dev/altmem/altmem.c | 9 ++++++---
sys/dev/ata/wd.c | 9 ++++++---
sys/dev/isa/fd.c | 9 ++++++---
sys/dev/isa/mcd.c | 8 +++++---
sys/dev/mca/ed_mca.c | 9 ++++++---
sys/dev/md.c | 8 +++++---
sys/dev/mscp/mscp_disk.c | 7 ++++---
sys/dev/ofw/ofdisk.c | 9 ++++++---
sys/dev/qbus/rf.c | 6 +++---
sys/dev/qbus/rl.c | 7 ++++---
sys/dev/raidframe/rf_netbsdkintf.c | 9 ++++++---
sys/dev/scsipi/cd.c | 9 ++++++---
sys/dev/scsipi/sd.c | 9 ++++++---
sys/dev/spi/spiflash.c | 8 +++++---
sys/dev/vme/xd.c | 8 +++++---
sys/dev/vme/xy.c | 8 +++++---
sys/dev/vnd.c | 9 ++++++---
34 files changed, 175 insertions(+), 102 deletions(-)
diffs (truncated from 991 to 300 lines):
diff -r ca961114a9dd -r b387caafe36c sys/arch/acorn32/mainbus/fd.c
--- a/sys/arch/acorn32/mainbus/fd.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/acorn32/mainbus/fd.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.57 2015/01/02 19:42:05 christos Exp $ */
+/* $NetBSD: fd.c,v 1.58 2015/04/26 15:15:19 mlelstv Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.57 2015/01/02 19:42:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.58 2015/04/26 15:15:19 mlelstv Exp $");
#include "opt_ddb.h"
@@ -296,7 +296,9 @@
int fd_get_parms(struct fd_softc *);
void fdstart(struct fd_softc *);
-struct dkdriver fddkdriver = { fdstrategy };
+struct dkdriver fddkdriver = {
+ .d_strategy = fdstrategy
+};
struct fd_type *fd_nvtotype(const char *, int, int);
void fd_set_motor(struct fdc_softc *fdc, int reset);
diff -r ca961114a9dd -r b387caafe36c sys/arch/amiga/dev/fd.c
--- a/sys/arch/amiga/dev/fd.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/amiga/dev/fd.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.95 2015/01/02 19:42:05 christos Exp $ */
+/* $NetBSD: fd.c,v 1.96 2015/04/26 15:15:19 mlelstv Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.95 2015/01/02 19:42:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.96 2015/04/26 15:15:19 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -279,7 +279,9 @@
.d_flag = D_DISK
};
-struct dkdriver fddkdriver = { fdstrategy };
+struct dkdriver fddkdriver = {
+ .d_strategy = fdstrategy
+};
CFATTACH_DECL_NEW(fdc, 0,
fdcmatch, fdcattach, NULL, NULL);
diff -r ca961114a9dd -r b387caafe36c sys/arch/arc/jazz/fd.c
--- a/sys/arch/arc/jazz/fd.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/arc/jazz/fd.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.46 2015/01/02 19:42:05 christos Exp $ */
+/* $NetBSD: fd.c,v 1.47 2015/04/26 15:15:19 mlelstv Exp $ */
/* $OpenBSD: fd.c,v 1.6 1998/10/03 21:18:57 millert Exp $ */
/* NetBSD: fd.c,v 1.78 1995/07/04 07:23:09 mycroft Exp */
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.46 2015/01/02 19:42:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.47 2015/04/26 15:15:19 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -214,7 +214,9 @@
static void fdstart(struct fd_softc *);
-struct dkdriver fddkdriver = { fdstrategy };
+struct dkdriver fddkdriver = {
+ .d_strategy = fdstrategy
+};
static bool fd_shutdown(device_t, int);
#if 0
diff -r ca961114a9dd -r b387caafe36c sys/arch/atari/dev/fd.c
--- a/sys/arch/atari/dev/fd.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/atari/dev/fd.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.83 2015/01/02 19:42:05 christos Exp $ */
+/* $NetBSD: fd.c,v 1.84 2015/04/26 15:15:19 mlelstv Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.83 2015/01/02 19:42:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.84 2015/04/26 15:15:19 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -379,7 +379,9 @@
static int fdmatch(device_t, cfdata_t, void *);
static void fdattach(device_t, device_t, void *);
-struct dkdriver fddkdriver = { fdstrategy };
+struct dkdriver fddkdriver = {
+ .d_strategy = fdstrategy
+};
CFATTACH_DECL_NEW(fd, sizeof(struct fd_softc),
fdmatch, fdattach, NULL, NULL);
diff -r ca961114a9dd -r b387caafe36c sys/arch/atari/dev/hdfd.c
--- a/sys/arch/atari/dev/hdfd.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/atari/dev/hdfd.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdfd.c,v 1.80 2015/01/02 19:42:05 christos Exp $ */
+/* $NetBSD: hdfd.c,v 1.81 2015/04/26 15:15:19 mlelstv Exp $ */
/*-
* Copyright (c) 1996 Leo Weppelman
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.80 2015/01/02 19:42:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.81 2015/04/26 15:15:19 mlelstv Exp $");
#include "opt_ddb.h"
@@ -313,7 +313,9 @@
void fdstart(struct fd_softc *);
-struct dkdriver fddkdriver = { fdstrategy };
+struct dkdriver fddkdriver = {
+ .d_strategy = fdstrategy
+};
void fd_set_motor(struct fdc_softc *, int);
void fd_motor_off(void *);
diff -r ca961114a9dd -r b387caafe36c sys/arch/dreamcast/dev/gdrom.c
--- a/sys/arch/dreamcast/dev/gdrom.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/dreamcast/dev/gdrom.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gdrom.c,v 1.40 2014/07/25 08:10:32 dholland Exp $ */
+/* $NetBSD: gdrom.c,v 1.41 2015/04/26 15:15:19 mlelstv Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.40 2014/07/25 08:10:32 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.41 2015/04/26 15:15:19 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -110,7 +110,9 @@
CFATTACH_DECL_NEW(gdrom, sizeof(struct gdrom_softc),
gdrommatch, gdromattach, NULL, NULL);
-struct dkdriver gdromdkdriver = { gdromstrategy };
+struct dkdriver gdromdkdriver = {
+ .d_strategy = gdromstrategy
+};
struct gd_toc {
diff -r ca961114a9dd -r b387caafe36c sys/arch/dreamcast/dev/maple/mmemcard.c
--- a/sys/arch/dreamcast/dev/maple/mmemcard.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/dreamcast/dev/maple/mmemcard.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mmemcard.c,v 1.25 2015/01/02 19:42:05 christos Exp $ */
+/* $NetBSD: mmemcard.c,v 1.26 2015/04/26 15:15:19 mlelstv Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mmemcard.c,v 1.25 2015/01/02 19:42:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mmemcard.c,v 1.26 2015/04/26 15:15:19 mlelstv Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -217,7 +217,9 @@
CFATTACH_DECL_NEW(mmem, sizeof(struct mmem_softc),
mmemmatch, mmemattach, mmemdetach, NULL);
-struct dkdriver mmemdkdriver = { mmemstrategy };
+struct dkdriver mmemdkdriver = {
+ .d_strategy = mmemstrategy
+};
static int
mmemmatch(device_t parent, cfdata_t cf, void *aux)
diff -r ca961114a9dd -r b387caafe36c sys/arch/emips/ebus/ace_ebus.c
--- a/sys/arch/emips/ebus/ace_ebus.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/emips/ebus/ace_ebus.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ace_ebus.c,v 1.18 2015/04/13 21:18:41 riastradh Exp $ */
+/* $NetBSD: ace_ebus.c,v 1.19 2015/04/26 15:15:19 mlelstv Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ace_ebus.c,v 1.18 2015/04/13 21:18:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ace_ebus.c,v 1.19 2015/04/26 15:15:19 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1585,7 +1585,10 @@
void __acestart(struct ace_softc*, struct buf *);
void acerestart(void *);
-struct dkdriver acedkdriver = { acestrategy, minphys };
+struct dkdriver acedkdriver = {
+ .d_strategy = acestrategy,
+ .d_minphys = minphys
+};
#ifdef HAS_BAD144_HANDLING
static void bad144intern(struct ace_softc *);
diff -r ca961114a9dd -r b387caafe36c sys/arch/emips/ebus/flash_ebus.c
--- a/sys/arch/emips/ebus/flash_ebus.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/emips/ebus/flash_ebus.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: flash_ebus.c,v 1.16 2015/04/13 21:18:41 riastradh Exp $ */
+/* $NetBSD: flash_ebus.c,v 1.17 2015/04/26 15:15:19 mlelstv Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: flash_ebus.c,v 1.16 2015/04/13 21:18:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: flash_ebus.c,v 1.17 2015/04/26 15:15:19 mlelstv Exp $");
/* Driver for the Intel 28F320/640/128 (J3A150) StrataFlash memory device
* Extended to include the Intel JS28F256P30T95.
@@ -1431,7 +1431,10 @@
void eflashdone(struct eflash_softc *);
static void eflash_set_geometry(struct eflash_softc *sc);
-struct dkdriver eflashdkdriver = { eflashstrategy, minphys };
+struct dkdriver eflashdkdriver = {
+ .d_strategy = eflashstrategy,
+ .d_minphys = minphys
+};
#ifdef HAS_BAD144_HANDLING
static void bad144intern(struct eflash_softc *);
diff -r ca961114a9dd -r b387caafe36c sys/arch/mac68k/obio/iwm_fd.c
--- a/sys/arch/mac68k/obio/iwm_fd.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/mac68k/obio/iwm_fd.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iwm_fd.c,v 1.55 2015/01/03 16:44:14 christos Exp $ */
+/* $NetBSD: iwm_fd.c,v 1.56 2015/04/26 15:15:19 mlelstv Exp $ */
/*
* Copyright (c) 1997, 1998 Hauke Fath. All rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iwm_fd.c,v 1.55 2015/01/03 16:44:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iwm_fd.c,v 1.56 2015/04/26 15:15:19 mlelstv Exp $");
#include "locators.h"
@@ -260,7 +260,7 @@
/* disk(9) framework device switch */
struct dkdriver fd_dkDriver = {
- fdstrategy
+ .d_strategy = fdstrategy
};
/*** Configure the IWM controller ***/
diff -r ca961114a9dd -r b387caafe36c sys/arch/sparc/dev/fd.c
--- a/sys/arch/sparc/dev/fd.c Sun Apr 26 12:44:08 2015 +0000
+++ b/sys/arch/sparc/dev/fd.c Sun Apr 26 15:15:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.156 2015/01/02 19:42:06 christos Exp $ */
+/* $NetBSD: fd.c,v 1.157 2015/04/26 15:15:19 mlelstv Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
Home |
Main Index |
Thread Index |
Old Index