Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Use C99 initializers



details:   https://anonhg.NetBSD.org/src/rev/72719c482fd8
branches:  trunk
changeset: 327759:72719c482fd8
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Mar 16 10:06:40 2014 +0000

description:
Use C99 initializers

diffstat:

 sys/dev/usb/umcs.c |  15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (36 lines):

diff -r ec53bddc9f7d -r 72719c482fd8 sys/dev/usb/umcs.c
--- a/sys/dev/usb/umcs.c        Sun Mar 16 10:02:27 2014 +0000
+++ b/sys/dev/usb/umcs.c        Sun Mar 16 10:06:40 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umcs.c,v 1.1 2014/03/16 09:34:45 martin Exp $ */
+/* $NetBSD: umcs.c,v 1.2 2014/03/16 10:06:40 martin Exp $ */
 /* $FreeBSD: head/sys/dev/usb/serial/umcs.c 260559 2014-01-12 11:44:28Z hselasky $ */
 
 /*-
@@ -41,7 +41,7 @@
  *
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umcs.c,v 1.1 2014/03/16 09:34:45 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umcs.c,v 1.2 2014/03/16 10:06:40 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -125,12 +125,11 @@
 static void umcs7840_port_close(void *sc, int portno);
 
 struct ucom_methods umcs7840_methods = {
-       umcs7840_get_status,
-       umcs7840_set,
-       umcs7840_param,
-       NULL,
-       umcs7840_port_open,
-       umcs7840_port_close,
+       .ucom_get_status = umcs7840_get_status,
+       .ucom_set = umcs7840_set,
+       .ucom_param = umcs7840_param,
+       .ucom_open = umcs7840_port_open,
+       .ucom_close = umcs7840_port_close,
 };
 
 static const struct usb_devno umcs7840_devs[] = {



Home | Main Index | Thread Index | Old Index