aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_ccd.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-03-03 12:15:54 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-03-03 12:15:54 +0000
commit7ac40f5f59dea6e9ab4869e974bdd4026274e921 (patch)
tree4e91d5779ffebe1d75e975aa4450f35f965430eb /sys/geom/geom_ccd.c
parent03f5c0014428be25ffe752865c2a06b1c2cd9347 (diff)
Gigacommit to improve device-driver source compatibility between
branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
Notes
Notes: svn path=/head/; revision=111815
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index 4fe4f985ab02..ce4030b1e5ab 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -115,19 +115,11 @@ static d_ioctl_t ccdctlioctl;
#define CDEV_MAJOR 74
static struct cdevsw ccdctl_cdevsw = {
- /* open */ nullopen,
- /* close */ nullclose,
- /* read */ noread,
- /* write */ nowrite,
- /* ioctl */ ccdctlioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "ccdctl",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0
+ .d_open = nullopen,
+ .d_close = nullclose,
+ .d_ioctl = ccdctlioctl,
+ .d_name = "ccdctl",
+ .d_maj = CDEV_MAJOR,
};
static LIST_HEAD(, ccd_s) ccd_softc_list =