From nobody Sun Jul 24 22:55:35 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Lrdn41cr8z3yvL4; Sun, 24 Jul 2022 22:55:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lrdn418rGz41Lr; Sun, 24 Jul 2022 22:55:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=k4fo31q9NUwUl4KfjxbGvX8DvBDh1r0vLHYcmFCuqKY=; b=llELaLnwnrlFU+glkEmDzVoKu6ybVHRjklDRP0fUdBpyZ9kdwrRjH5smVUWjNf+CIVRsI5 M74HU/KI+muM5TTVB4QtD9FEscMOIC/GXwn/djIkGb+ohqeOv6oDab2xrsxAqRRkBgfkDI 7qyG0KTOXaH6hb/J2CZNxr1bap00mSnpXAS55RpGxdlXtcYxhoJY8rZgA5W36KE1hueyd8 Ysv3lMXXVM1/J9apLrERA2l2IyVIo5BOVQRBwyybMjg1klx3V0puv99e66MKlwZqa1z/bT UG+fDbD86bPMkJPmD3dGoZo4ed/rrueFvmEGA1VDKA3UBhQ/6nKFDwbiva76og== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lrdn40GHMzbVN; Sun, 24 Jul 2022 22:55:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26OMtZbG004422; Sun, 24 Jul 2022 22:55:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMtZfZ004421; Sun, 24 Jul 2022 22:55:35 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:55:35 GMT Message-Id: <202207242255.26OMtZfZ004421@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: bf855d1bf252 - main - stand: Use c99 structure initialization for fwohci device List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bf855d1bf252bdf31a405cef65021d63846765ab Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=k4fo31q9NUwUl4KfjxbGvX8DvBDh1r0vLHYcmFCuqKY=; b=v8mlfgn/1DeaHzz02rst9rj0WrDLZ3XAT7jFNwJ/kFoemzviv7Sp+Bptfbg77DYIQKCjHH 3/jI2/W9QXRHAL32L8Hv3KTH6yrmjtLcZ+VslLo92zo6LxtJ/r+2Uwf+58B6XbHnTIdMgX Hmt1zp7GeX+3ZHB5HMrr+2MN7ea3cuHKKqgV4OHo5qY0XYsvzAe5zgzbNWFHeyRfTtiXkI sHKz7oOi82rG/FSB0dLT0ZvIngrEuSZHcsJ2cn4MT2tlfXpQr4N96GA36uTIjNDqXA5Zec /8Mo8WRDCFzv9F45JZxaYUGXte/Jb17xmsgi2mTFhBzYG6nFgLetL1F/DaMQBg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658703336; a=rsa-sha256; cv=none; b=Udm5OWQLyn1tWlSOfOUAr5h/OTbLDbxSRCmUc680bHv/x4AnhniyiajNruYfpxYeWvUwnj U+vEWoriCiri8JLHWAx/iF5VzEr67US4L86/yZLLpd34jE0uu+l1EIRMINbBez+pEcl7z/ f/tu3CbI9coRCTX2tA2m8CCjBSxeEDR0Yv7Zc2CntDv2uv2L1kyJzNpLlxbCuA1ArcEtoP I0LfD99z/4z2Ai3HK0d9mkgIoDrRTcHzlyPS4OzMSROpRmy4qM1Du5KPF9i4yDTWHvzmtH kiekfKJguOVIbaFHZQ+sWy9za/o+WF3a/CNtIZZ7XY9FJ+xiEXRq0REYFV4xsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=bf855d1bf252bdf31a405cef65021d63846765ab commit bf855d1bf252bdf31a405cef65021d63846765ab Author: Warner Losh AuthorDate: 2022-07-24 21:51:29 +0000 Commit: Warner Losh 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];