From patchwork Mon Sep 13 08:30:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 510312 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66190C433EF for ; Mon, 13 Sep 2021 08:35:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4CD5160F46 for ; Mon, 13 Sep 2021 08:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238344AbhIMIgl (ORCPT ); Mon, 13 Sep 2021 04:36:41 -0400 Received: from mail-mw2nam08on2066.outbound.protection.outlook.com ([40.107.101.66]:47168 "EHLO NAM04-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238166AbhIMIdh (ORCPT ); Mon, 13 Sep 2021 04:33:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LhYEvV9zTkLOBDbHJp24P/22X12a3MyV5YAzabNMy5sfu1cG/1DHzmVTK+YKOimdcSlzcmI7+ecEWbso/TqKkMTiXzEJyE5U2Mo1D/l9n2Klzt6UUge+i5aimNJXQEjoPaniRmLerBIo5TWckS2KA7rodnchCqa9PoLEoxNQCGjw4DiFRx9kkFMWCq0cl9svQ3Q00RpF5Hx592t0F5A7mmXJQ6R43gOxqKoUdJOJ13kQqml+mQxRZDO9p/F1V6Uxs5hGTTA5F5Pu9tqc/dQ58cxfAP5hQgS8YqJqzKgclE/4AC/MpNxcYQ4j+4uKAo1aO2nnyvNVW75NEunHE9Ql9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zepjhr/9IN2TlKMACudigtOtb0JfVXPJtJXaDzy1Q/o=; b=bIPqRwJFsy7kbgNrQM7Yv5BC5hRMTa/tubMYp/6xG7Iv/6Y8i4Mrf0oLH7RcATNqoVxiTnWAZYUMy7GERXB2XUXPrY56v8UwWb9IWq5yAlLkQiMaLh3iypZhuzq3WtkqCPOohQCAPgQ/V+FXmQFrxfqH9TJAZnb+Ydi7DJBt0qBn3j665emvrckg9zqqRG/2N5DDX0z9zKo8WtOj50DR1CW/opWOxe4ibuYbJcjRCsPG3RHCV8IpTP257m7hj6FR+D7f6rRf46vQRSSb5y5ySZDfPUL6ptcpY/OoPf1Qfrelinlc//ELJzayPc9hFUN09/1fD4ZwV1lswD6P4eg27g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zepjhr/9IN2TlKMACudigtOtb0JfVXPJtJXaDzy1Q/o=; b=B/zYWNxA5yAtz9rVVVvkcfxDEBXmCvjaISXsAgaMWorNmt0vbxo9HoEhAvyp/mlkDqHQ1RLswvMv9sqP44rPaA5l08F5tGeaRRen6vq8OQEgvF6pqhct6IAb4Or+5pY3d+azV3aJP6X3Ov9TSWMQ/Jz6tMoflejxC8dmS0PgHZ4= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB2717.namprd11.prod.outlook.com (2603:10b6:805:60::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.16; Mon, 13 Sep 2021 08:31:58 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Mon, 13 Sep 2021 08:31:58 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH v2 20/33] staging: wfx: apply naming rules in hif_tx_mib.c Date: Mon, 13 Sep 2021 10:30:32 +0200 Message-Id: <20210913083045.1881321-21-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913083045.1881321-1-Jerome.Pouiller@silabs.com> References: <20210913083045.1881321-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PAZP264CA0067.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fd::10) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (37.71.187.125) by PAZP264CA0067.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fd::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Mon, 13 Sep 2021 08:31:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 812a8717-129c-492b-7668-08d97690e89b X-MS-TrafficTypeDiagnostic: SN6PR11MB2717: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EuyBiNLY0Uh5N3S8FzWzHdCaTgQlknPsmC+6sqTO1WsJw5r7r+QJojYenBVNs0Ti82AxD9I9Wiovwg0LreB+yuVxO4e1PsuGwtF6IEychsy69u9jY5PNIj29oOUixk9p4EBIqU0BzY6myvSVAowRjUeH7IU/ZbWyH2CQckZUYneZ1gr0oh3Yp641IwH+cyAE8VWE0sdOgqJS+Ws8Xo2cCAcus0GLjHyCqAoYZA23Ze0+XEmnPjk8I3nkP1zrQeRhbxfAq2/XuIJSM9PIN2b0JPBqPgIvEDj+ZESNVwb5flyv976fyHR0JQm7w9F5uT2zENI0iNaGZFVHNbF0Z6NPUn7lvByCSwqu65BLKqUzuLfiAjXXnDYPojokwxdX8LknUrhLkTcbpGgaWpAig6jzYiAMqZdoTwcgFJ/fefOssHhr584ni9f6xqR6jQ4uxbF8SamwFXTkkZ4EWmZSqD4Q8OSIXra9GCMF2Asyk2q4Gn7iD9R2PL2m1viW9zGz4lMbCRdVJf9+Pf91p7ku4fnMWCRd8Bg9TeFZGAcZQwwbJWTyqoE4NWoXL71PEWxyqgku/qc70QlQtMOIWDnO9EeeUEdvWr9xtlId6LelhoONozNMNJc5SIlHwyXyDxzq70ebK/bm8HpGEqdf+9htA//5n8SDMaxE0eN4LH2Myjk5gOkRHhGkLCxkGr6j8fG3QvgBC586yQa0J95ts+YcPHGJRg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(4326008)(2906002)(107886003)(26005)(66946007)(38100700002)(52116002)(7696005)(1076003)(956004)(36756003)(316002)(8676002)(38350700002)(186003)(8936002)(83380400001)(54906003)(66556008)(66476007)(508600001)(6486002)(5660300002)(6666004)(86362001)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?CUSy+PHF29tihULtQSAnaSfDR?= =?utf-8?q?cy8cT6qCwL9LSHJqkrDghcj4mNTWHKGkVYPY/PyRoipVgDFegXizFBdK?= =?utf-8?q?IadJJRSVLykUjwaTz+ADZ/Xh4BWWBCuCNtXj27U2V3QuASigk41uuzmX?= =?utf-8?q?mr/lWnpeK5xj0ViaGFW8wO8iOQ/r/uPBf+sXFGVn1ks7Ywm/dxw7monB?= =?utf-8?q?eEcBcWrnWR1Uqe46hXTEQwhgwBpPFfgjQLO4ALEioQ0I5gVDJyoKIWz7?= =?utf-8?q?rJWYWp4LR01NScnFaPh8M7fpvuRP3KIeO3fEOL84d7KmJdnjcp1lO1a2?= =?utf-8?q?ctwRZrkmJyOE2ODed7wQdkxGKrAoPtMOh5QYgzXRa5q2q46BjwOdJnXq?= =?utf-8?q?4R/jCE9k9a6GbMqhdAtK7GMe3MMyI1u5JBnWL2oFThpGdm5wEGwHdZSs?= =?utf-8?q?9SL/xlJjCtHazDreIYXb9y9IXJSdKQxWCc2sF0SxFTYo/IGEzUwtH60h?= =?utf-8?q?XFhDr8b7LW1I0c6GDTLEc8A6NRR5LAjeWTa4ZBYfv0kZbn7ehnokLOce?= =?utf-8?q?kArXytS5rJ8JFNFh/8iVD8caG11qjnHcVbujkWxob6UU5vB8cyC+1W8b?= =?utf-8?q?I4GWJrTSO3aAq0uJr3obmnz/nyrWeP5qz6e6T1lJ9v0EqJUS3mb7BNTs?= =?utf-8?q?kvmyEDoscXZL7RsqG5cUBWKLUP5bv6pLIrzCGVEhDSbLcFkF+i6F3AeM?= =?utf-8?q?C9jK0pg714buZViklxr50FlWr/ZyC9YiPImrEvNDbyOQbq2I1cpptGQV?= =?utf-8?q?JLf4IS7JHk/Ok6OQ7IShIuZ15jzUY+7rMWp2Gm+IiJwmHBcJi1clZKtC?= =?utf-8?q?FU0Tr7isSQrXHJ2WxotwxuACGDfzw0+sH1rkpPY2eooNr6e3jpoLwiFB?= =?utf-8?q?FO+io4pR6VlBP8hseOdZvoGexucnlfckzjz8aZRyGBMUqBmdgugBeQo/?= =?utf-8?q?Wd7AGd+OIEzxBJD/bEvq5OSX6oO7HAdJw5hi7lRYmatl/WkpmmNuKspe?= =?utf-8?q?tliHFaXGqL72BlDD6piOgaHYtojld0e5k3KhyzRrontovjgvNTgScXup?= =?utf-8?q?5N3pqQmjOnFuQRYZdvttEmMateLE8R4wO4PjUTinulSRETbv8/9pl/OY?= =?utf-8?q?vryexAbFJGh9DJZ8IVxglWF1NYrnymzsLLShEWGRgBaG3uwN3Sb5Ql0G?= =?utf-8?q?UO/+TqPzGeEDNznVQRK3dxLgITQyE8Jl73ks3z1TKxWT5t7miQg98U5Q?= =?utf-8?q?G9jLSkEbFAiqP09cXVNM7jdtklRqiGh5aZSRc6e3SbJ79J0bYPLgLbxQ?= =?utf-8?q?vq4lQu6JybAy+JFFnC1UxMBirQD0P1RurN6t5dFl7bEL6SnXcqZCF0KD?= =?utf-8?q?pwn09lcE+ZOdwtWRLFGWlLLm6etVcT1?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 812a8717-129c-492b-7668-08d97690e89b X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 08:31:40.0545 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Zb1ZcbmvDkFdBDDhrbVjb7yGpe4hgKHAOHIiyTD/jftewXjW1TxXr/svm+ggk7uvFMTmxm55vyBpCBgwMxAxoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2717 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jérôme Pouiller All the functions of hif_tx_mib.c format data to be sent to the hardware. In this file, the struct to be sent is always named 'arg'. Also applies this rule to hif_set_macaddr(). Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx_mib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wfx/hif_tx_mib.c b/drivers/staging/wfx/hif_tx_mib.c index 1926cf1b62be..1900b7fafd9e 100644 --- a/drivers/staging/wfx/hif_tx_mib.c +++ b/drivers/staging/wfx/hif_tx_mib.c @@ -81,12 +81,12 @@ int hif_get_counters_table(struct wfx_dev *wdev, int vif_id, int hif_set_macaddr(struct wfx_vif *wvif, u8 *mac) { - struct hif_mib_mac_address msg = { }; + struct hif_mib_mac_address arg = { }; if (mac) - ether_addr_copy(msg.mac_addr, mac); + ether_addr_copy(arg.mac_addr, mac); return hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_DOT11_MAC_ADDRESS, - &msg, sizeof(msg)); + &arg, sizeof(arg)); } int hif_set_rx_filter(struct wfx_vif *wvif,