Date: Sun, 24 Jul 2022 22:55:35 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: bf855d1bf252 - main - stand: Use c99 structure initialization for fwohci device Message-ID: <202207242255.26OMtZfZ004421@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=bf855d1bf252bdf31a405cef65021d63846765ab commit bf855d1bf252bdf31a405cef65021d63846765ab Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-24 21:51:29 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-07-24 22:53:34 +0000 stand: Use c99 structure initialization for fwohci device Use c99 structure init for devsw. Sponsored by: Netflix --- stand/i386/libfirewire/firewire.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stand/i386/libfirewire/firewire.c b/stand/i386/libfirewire/firewire.c index b9cb1ec0b19a..c4e4bdaa065f 100644 --- a/stand/i386/libfirewire/firewire.c +++ b/stand/i386/libfirewire/firewire.c @@ -76,15 +76,15 @@ static void fw_cleanup(void); void fw_enable(void); struct devsw fwohci = { - "FW1394", /* 7 chars at most */ - DEVT_NET, - fw_init, - fw_strategy, - fw_open, - fw_close, - noioctl, - fw_print, - fw_cleanup + .dv_name = "FW1394", /* 7 chars at most */ + .dv_type = DEVT_NET, + .dv_init = fw_init, + .dv_strategy = fw_strategy, + .dv_open = fw_open, + .dv_close = fw_close, + .dv_ioctl = noioctl, + .dv_print = fw_print, + .dv_cleanup = fw_cleanup, }; static struct fwohci_softc fwinfo[MAX_OHCI];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207242255.26OMtZfZ004421>