From patchwork Mon Sep 13 13:01:51 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: 511492 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=ham 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 D1F0CC433EF for ; Mon, 13 Sep 2021 13:03:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B9CFB60F9F for ; Mon, 13 Sep 2021 13:03:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239718AbhIMNEc (ORCPT ); Mon, 13 Sep 2021 09:04:32 -0400 Received: from mail-dm6nam10on2042.outbound.protection.outlook.com ([40.107.93.42]:9633 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238540AbhIMNEN (ORCPT ); Mon, 13 Sep 2021 09:04:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HgvUbHrK5/J2ONvgjVIVgA8H0xOaT0JOtZ2tZjCr7R1W+sBd+3KdAKN+8zVHOv/PXHJ1I+vmK+p5pXptLJZen40nix2UhM4wcyt5YuxY0tAV6e3julb/VYX2rGZ0tqCbKFtbfBd2DuaA2uek2nMHGA9WwEqT8z1s3hsWxfebxH637eZ+dTLyxSibqKqnnZwPxs77OFPGTQhD9bPhz69zg6q/vlch5GE2QTtMBNkYWmK1vJN2Ne8himUW2HT1eLLcfUFPPiZ6SHxKEDxFz19AL7PgNH1zOLoZ4n+EfwhlD3A6FFTgu7Go1BIZI/FIlblrFpjNIgMIVISm2Qc7hRsbJQ== 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=Hy8DkU3HtsxC4yITYA1exB/xfZvzO/HghjZ97+dmr8OZThgxYSseGiBXsO281MyohsSGDPv9OI1L1VNaeU5HYpgJ1XdminiI83u7IDvoT0QvKwCCL+sPN+kDBlEgtK62lSQ3OD0HUalB7bsxdwLOZxx9rvoyOzWP8FRVQ8sxx9IGA3ZDtlUux+trI57AEF23n3TvhTBdWEH7VaycJ8e+eB4KOK/EnRS9UVQCjvEoDBd0j+HPbY24WyMPm8i/3tUvbam3AjUs+YdffvKbvnrG7vCliZ4+UnQi3G7MxDnHjK5YJ/Fg1HMY/doeNXDMYFWo+1eHrYjRQ3NgcQyIkOBq7w== 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=iA5dfYgCcu1Ie/+3003OxgQ6eyaRjLmKHHSKyL51z8J+2M7IEkdwZ3X9psGOPh8LnmCVfLUtYZKT0xIzWyrZdAu/Ioj7hF4A60j9BSkSek3vSKMocoet5QBjjahLIxp9Ihu0ODSA7/SytOlKgHAl77a9Eto2nz3etN6DkEfXzhI= 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 SN6PR11MB3502.namprd11.prod.outlook.com (2603:10b6:805:da::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Mon, 13 Sep 2021 13:02:54 +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 13:02:54 +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 v3 20/32] staging: wfx: apply naming rules in hif_tx_mib.c Date: Mon, 13 Sep 2021 15:01:51 +0200 Message-Id: <20210913130203.1903622-21-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913130203.1903622-1-Jerome.Pouiller@silabs.com> References: <20210913130203.1903622-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR2P264CA0021.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::33) 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 PR2P264CA0021.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::33) 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 13:02:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b3cf8750-7a61-41a0-e511-08d976b6ccf0 X-MS-TrafficTypeDiagnostic: SN6PR11MB3502: 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: Ug3x70gRVgneeNIIPiKQkGBrj9NsHy5rCF51M73tTiwEiUy12ewjkCArNQiWcA95uPtY6ovFOt7q/TtlVhnu0S8SWW8Mkeu3H16l/FCFD4qoMcLtajHz3e4ZMZwPE9Pyfi//8fhFqYjfmSlY8htLFlVKTzo7gazGVLUGhFkUIRlPHIPSh0wR6U6ul9L8LcdwEnvNL8vfBHolIBd75Hbar3SVJij1xdg3m86HKZFoAgNeoC+BrY9ZszIm8I7k//ooHWZAfdQhtHCGM+2eu1KxARZ58uqN474zhZ/B54GIA5CdMKLgLWBZ7r+gH1Q/+mDKwtyyZhQaicHstEGcDaK2LjNAdLcVYI7xvN97zxqQZxCMCymTzis2QYI8k8qpNgGGV7+LI1hDY4BCFG3us7pbQWEy6BpJlaD7+YCrTgSDd14zfKYEpG0gI8TTmmyZ8C5QM9OuI/WZm+DkLSpqBc+uIOhXb4iugkUr6UFSdcl3oIcFayUEyA8SRrj9C+E8DdOk8YPoSfMfRhwoFv0SOdODP77NbIvvGA51kxTeJrNqrnFG4J5+ZbdqA2fm9FxubR2VxAS5iOCnLkmvN/PxclzzZnpeWjlP5wdhuo0xP1ntfdRxglhUK54tua6JJHqoeNm54FG1Bdy4wcLIyQLgsqmXIN8tn0CyDkl/0VE2Opwrt87wWzmLOTSyddRz4Ruwe5l4sAJeSD5W6mUhshcczda+Dw== 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:(39850400004)(136003)(396003)(376002)(346002)(366004)(316002)(66476007)(8676002)(186003)(7696005)(52116002)(66946007)(26005)(4326008)(66556008)(2906002)(54906003)(107886003)(6486002)(2616005)(478600001)(1076003)(36756003)(5660300002)(956004)(8936002)(86362001)(38100700002)(38350700002)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?LwCK64isjr1IHq6p8sp2Y707c?= =?utf-8?q?C7oaj9y7d4uDBnZSnyuIupFlC13dFVM5idfryYsjbmZb49cK9mUmwpZj?= =?utf-8?q?kLbSSK3WgZZEn3G86ojd6KqPtT51aOZEX0Mj7Rx1WgyzDyWjNJmoRq+V?= =?utf-8?q?CL8T6ZyqiwDs1XrOrG2i+TK8Fcb7lESYMrNKVh1ue0FACEA95+5rc/MQ?= =?utf-8?q?RQ1WCXhC51h3K8k3sm8YcaMZh8A/P/ocDG4R+oBymjs58U/TWy6zSY0V?= =?utf-8?q?ImCpIw/jB3ZQsw+3e7JMaVEFd/+TVNvjaJ4YE2kbvwYgxqX0fnFW/Ifl?= =?utf-8?q?x4yLFMgkxXJm60Q2X9Oi8NT5VQol4RJEuJp6Pb0Rk4fWjsFE+se2ve0V?= =?utf-8?q?bGT/R5+K9nMpcdaphfcvLyoRPSKuBcjC8au2ve0kAbTMZwegKN40iA0J?= =?utf-8?q?o9WjAzKXMLVtFMiev7NVSq/R1B0c9ZsVL/wKF+hqVu6rBQNCXeT3ZqR/?= =?utf-8?q?LlIhYlNUbaTz14I0DLoyT8OqVbGvqCaYCb33sAOkytdTKjDGxiOxAN8Y?= =?utf-8?q?V+dTYlVNWraOyiGbgkoCVD4iBEmeCeUIqTGNow835kjBhp3I8NU7Wm/2?= =?utf-8?q?wYHXaCSqvQ2AyXo7ecCR7ZvCrZPRP4k0cbbNHVud5pcB9hl36LDQKrhZ?= =?utf-8?q?bjWV0zYckX1cgXR3FtlGyWywHtMYBgrcgI0lS9CtW5HaSuCFV2ZD9B+Z?= =?utf-8?q?78h/OkmN4jHmLcujQZIWFr0IzzZOzg/hE5tRgm0Rrix3vUgJmrNrAgot?= =?utf-8?q?j4NfGRsPxFetInIIr3bAa8FBZdO0zj6A8PEDA3jF5H7xZrQWiSBQVz+4?= =?utf-8?q?5p86wn8tr6DrDMqMtLbNa560bZefVMw2ylwSRS2c0xoWLhIJRL0t5Oph?= =?utf-8?q?5uP4UMj+/QOjBUOr1kfqP23c+ziBWHP5vJq2qf8G7h32nEXQzoi09zrJ?= =?utf-8?q?hLEZ1598cB5yV+skDpr0+rG3u79NQkitcpQkF1CBoUkk1llOtEkrXhTG?= =?utf-8?q?xxnxn4hEczTqZHBIa+T1v0uXhNNgxtOsYHBBG92W0OAyZHL/BxEGkt0Y?= =?utf-8?q?R+7XQj8DvoUkxm3hTTSJAgeeSc2B17Az57EFZ2i4Y4bKkniKdDovDHVE?= =?utf-8?q?sYqa2WilQOHFIuqqzo4wnrz/XZ1prsmVWflwMmilzeVpWuwXDBlEDJv+?= =?utf-8?q?BpBzVFKzoI/T6PFsxC8d+ru/jz4joSqD4RXfVez/Wz3vBY6O/+5/EBwK?= =?utf-8?q?uwnCKOCWbvrctv1i3xSmENn9I7i7W/b2n/ZAmdEeiL9QlDVeNzu0gQB9?= =?utf-8?q?WDWk8UgIJThB5dhdZJyh8QuD1rCdBqek0iYFtfo8TjETGmCDavWSXwvB?= =?utf-8?q?YFmWN1rJ51O77rV1WWwF1AxjOvuG6zN?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3cf8750-7a61-41a0-e511-08d976b6ccf0 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 13:02:54.5199 (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: fwLMis47clHoasLdVRUD49uBjxbBUmvdeA4wJmpGAjSgNe25zEcfGutjCqc1Ded9MZu0DJECe+2Tj9xUxKvlpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3502 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@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,