Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb Use designated initializers



details:   https://anonhg.NetBSD.org/src/rev/7239103f60c4
branches:  nick-nhusb
changeset: 804265:7239103f60c4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Mar 01 08:33:15 2015 +0000

description:
Use designated initializers

diffstat:

 sys/dev/usb/umass.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (40 lines):

diff -r c725445c31f7 -r 7239103f60c4 sys/dev/usb/umass.c
--- a/sys/dev/usb/umass.c       Sun Mar 01 08:31:27 2015 +0000
+++ b/sys/dev/usb/umass.c       Sun Mar 01 08:33:15 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umass.c,v 1.149.2.5 2015/03/01 08:31:27 skrll Exp $    */
+/*     $NetBSD: umass.c,v 1.149.2.6 2015/03/01 08:33:15 skrll Exp $    */
 
 /*
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -124,7 +124,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.149.2.5 2015/03/01 08:31:27 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.149.2.6 2015/03/01 08:33:15 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -255,15 +255,15 @@
 Static int umass_cbi_adsc(struct umass_softc *, char *, int, int, usbd_xfer_handle);
 
 const struct umass_wire_methods umass_bbb_methods = {
-       umass_bbb_transfer,
-       umass_bbb_reset,
-       umass_bbb_state
+       .wire_xfer = umass_bbb_transfer,
+       .wire_reset = umass_bbb_reset,
+       .wire_state = umass_bbb_state
 };
 
 const struct umass_wire_methods umass_cbi_methods = {
-       umass_cbi_transfer,
-       umass_cbi_reset,
-       umass_cbi_state
+       .wire_xfer = umass_cbi_transfer,
+       .wire_reset = umass_cbi_reset,
+       .wire_state = umass_cbi_state
 };
 
 #ifdef UMASS_DEBUG



Home | Main Index | Thread Index | Old Index