From 1e3d1c86bc86197c1ac7f82b28e13985df58fcf4 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 24 Jul 2022 15:51:24 -0600 Subject: [PATCH] stand: Use c99 structure initialization for uboot block device Use c99 structure init for devsw. Sponsored by: Netflix --- 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 70dcfdcc886..236a118b915 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