diff options
| author | dholland <dholland@NetBSD.org> | 2014-03-16 05:20:22 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2014-03-16 05:20:22 +0000 |
| commit | 76258fa0fe68b72536361d37e7b733d8bb10b786 (patch) | |
| tree | e8334d8baca3ac8a5d20fc7647d104a782381607 /sys/dev/bluetooth | |
| parent | 1ccd73de606f245b810e292b6739d955a4f27d56 (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/bluetooth')
| -rw-r--r-- | sys/dev/bluetooth/bthub.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/dev/bluetooth/bthub.c b/sys/dev/bluetooth/bthub.c index 241de8dea77..00d044ec2c1 100644 --- a/sys/dev/bluetooth/bthub.c +++ b/sys/dev/bluetooth/bthub.c @@ -1,4 +1,4 @@ -/* $NetBSD: bthub.c,v 1.18 2012/04/03 09:32:53 plunky Exp $ */ +/* $NetBSD: bthub.c,v 1.19 2014/03/16 05:20:27 dholland Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: bthub.c,v 1.18 2012/04/03 09:32:53 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bthub.c,v 1.19 2014/03/16 05:20:27 dholland Exp $"); #include <sys/param.h> #include <sys/conf.h> @@ -70,8 +70,17 @@ CFATTACH_DECL_NEW(bthub, 0, dev_type_ioctl(bthubioctl); const struct cdevsw bthub_cdevsw = { - nullopen, nullclose, noread, nowrite, bthubioctl, - nostop, notty, nopoll, nommap, nokqfilter, D_OTHER, + .d_open = nullopen, + .d_close = nullclose, + .d_read = noread, + .d_write = nowrite, + .d_ioctl = bthubioctl, + .d_stop = nostop, + .d_tty = notty, + .d_poll = nopoll, + .d_mmap = nommap, + .d_kqfilter = nokqfilter, + .d_flag = D_OTHER, }; /* bthub functions */ |
