Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Use designated initializers for struct ata_bustype



details:   https://anonhg.NetBSD.org/src/rev/2ab35f675ece
branches:  trunk
changeset: 958124:2ab35f675ece
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Dec 25 12:33:03 2020 +0000

description:
Use designated initializers for struct ata_bustype

diffstat:

 sys/dev/ic/mvsata.c  |  24 ++++++++++++------------
 sys/dev/ic/siisata.c |  24 ++++++++++++------------
 2 files changed, 24 insertions(+), 24 deletions(-)

diffs (90 lines):

diff -r 09436be433ef -r 2ab35f675ece sys/dev/ic/mvsata.c
--- a/sys/dev/ic/mvsata.c       Fri Dec 25 10:00:40 2020 +0000
+++ b/sys/dev/ic/mvsata.c       Fri Dec 25 12:33:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mvsata.c,v 1.57 2020/05/19 08:08:51 jdolecek Exp $     */
+/*     $NetBSD: mvsata.c,v 1.58 2020/12/25 12:33:03 skrll Exp $        */
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.57 2020/05/19 08:08:51 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.58 2020/12/25 12:33:03 skrll Exp $");
 
 #include "opt_mvsata.h"
 
@@ -221,16 +221,16 @@
 #endif
 
 static const struct ata_bustype mvsata_ata_bustype = {
-       SCSIPI_BUSTYPE_ATA,
-       mvsata_bio,
-       mvsata_reset_drive,
-       mvsata_reset_channel,
-       mvsata_exec_command,
-       ata_get_params,
-       mvsata_addref,
-       mvsata_delref,
-       mvsata_killpending,
-       mvsata_channel_recover,
+       .bustype_type = SCSIPI_BUSTYPE_ATA,
+       .ata_bio = mvsata_bio,
+       .ata_reset_drive = mvsata_reset_drive,
+       .ata_reset_channel = mvsata_reset_channel,
+       .ata_exec_command = mvsata_exec_command,
+       .ata_get_params = ata_get_params,
+       .ata_addref = mvsata_addref,
+       .ata_delref = mvsata_delref,
+       .ata_killpending = mvsata_killpending,
+       .ata_recovery = mvsata_channel_recover,
 };
 
 #if NATAPIBUS > 0
diff -r 09436be433ef -r 2ab35f675ece sys/dev/ic/siisata.c
--- a/sys/dev/ic/siisata.c      Fri Dec 25 10:00:40 2020 +0000
+++ b/sys/dev/ic/siisata.c      Fri Dec 25 12:33:03 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.43 2020/10/10 20:27:54 thorpej Exp $ */
+/* $NetBSD: siisata.c,v 1.44 2020/12/25 12:33:03 skrll Exp $ */
 
 /* from ahcisata_core.c */
 
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.43 2020/10/10 20:27:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.44 2020/12/25 12:33:03 skrll Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -184,16 +184,16 @@
 #endif /* NATAPIBUS */
 
 const struct ata_bustype siisata_ata_bustype = {
-       SCSIPI_BUSTYPE_ATA,
-       siisata_ata_bio,
-       siisata_reset_drive,
-       siisata_reset_channel,
-       siisata_exec_command,
-       ata_get_params,
-       siisata_ata_addref,
-       siisata_ata_delref,
-       siisata_killpending,
-       siisata_channel_recover,
+       .bustype_type = SCSIPI_BUSTYPE_ATA,
+       .ata_bio = siisata_ata_bio,
+       .ata_reset_drive = siisata_reset_drive,
+       .ata_reset_channel = siisata_reset_channel,
+       .ata_exec_command = siisata_exec_command,
+       .ata_get_params = ata_get_params,
+       .ata_addref = siisata_ata_addref,
+       .ata_delref = siisata_ata_delref,
+       .ata_killpending = siisata_killpending,
+       .ata_recovery = siisata_channel_recover,
 };
 
 #if NATAPIBUS > 0



Home | Main Index | Thread Index | Old Index