Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2024 04:08:42 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6e28b4aa15e0 - main - uboot: Use c99 initializers for the console struct
Message-ID:  <202405200408.44K48gFK081418@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=6e28b4aa15e057f59c0e022094c3f82f3062c2a3

commit 6e28b4aa15e057f59c0e022094c3f82f3062c2a3
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-19 20:58:42 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-20 04:05:42 +0000

    uboot: Use c99 initializers for the console struct
    
    Sponsored by:           Netflix
---
 stand/uboot/uboot_console.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/stand/uboot/uboot_console.c b/stand/uboot/uboot_console.c
index 60d6ccaf4417..c02ba9aba5f0 100644
--- a/stand/uboot/uboot_console.c
+++ b/stand/uboot/uboot_console.c
@@ -37,14 +37,13 @@ static int uboot_cons_getchar(void);
 static int uboot_cons_poll(void);
 
 struct console uboot_console = {
-	"uboot",
-	"U-Boot console",
-	0,
-	uboot_cons_probe,
-	uboot_cons_init,
-	uboot_cons_putchar,
-	uboot_cons_getchar,
-	uboot_cons_poll,
+	.c_name = "uboot",
+	.c_desc = "U-Boot console",
+	.c_probe = uboot_cons_probe,
+	.c_init = uboot_cons_init,
+	.c_out = uboot_cons_putchar,
+	.c_int = uboot_cons_getchar,
+	.c_ready = uboot_cons_poll,
 };
 
 static void



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