Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2023 22:11:12 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 15aff38147fe - stable/13 - stand: Use c99 structure initialization for uboot block device
Message-ID:  <202301242211.30OMBCnO083601@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=15aff38147fee691fe3b06a7dd3736ac61cf4f63

commit 15aff38147fee691fe3b06a7dd3736ac61cf4f63
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-24 21:51:24 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:25 +0000

    stand: Use c99 structure initialization for uboot block device
    
    Use c99 structure init for devsw.
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 1e3d1c86bc86197c1ac7f82b28e13985df58fcf4)
---
 stand/uboot/uboot_disk.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/stand/uboot/uboot_disk.c b/stand/uboot/uboot_disk.c
index 70dcfdcc8863..236a118b915a 100644
--- a/stand/uboot/uboot_disk.c
+++ b/stand/uboot/uboot_disk.c
@@ -81,15 +81,15 @@ static int stor_print(int);
 static void stor_cleanup(void);
 
 struct devsw uboot_storage = {
-	"disk",
-	DEVT_DISK,
-	stor_init,
-	stor_strategy,
-	stor_open,
-	stor_close,
-	stor_ioctl,
-	stor_print,
-	stor_cleanup
+	.dv_name = "disk",
+	.dv_type = DEVT_DISK,
+	.dv_init = stor_init,
+	.dv_strategy = stor_strategy,
+	.dv_open = stor_open,
+	.dv_close = stor_close,
+	.dv_ioctl = stor_ioctl,
+	.dv_print = stor_print,
+	.dv_cleanup = stor_cleanup,
 };
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301242211.30OMBCnO083601>