From patchwork Tue May 5 12:37:55 2020 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: 1283525 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=silabs.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-silabs-onmicrosoft-com header.b=nXMLPNPN; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49GfRQ0PHMz9sT1 for ; Tue, 5 May 2020 22:38:58 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729178AbgEEMi4 (ORCPT ); Tue, 5 May 2020 08:38:56 -0400 Received: from mail-eopbgr770049.outbound.protection.outlook.com ([40.107.77.49]:46720 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729075AbgEEMiz (ORCPT ); Tue, 5 May 2020 08:38:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cJ1EP0zKVT3iG9q1noWke98pKLEJklBln0b0xwlUQNs3wH3ibButgKG+NLfkDa+EEtORSy8KZdZf9wvRSv3Xe6n6sE+0Bh2+L//UFeHfNtbwCJsej0WuZG8Gl5ozPUjmFOvv52fC9lu94Aa8WxN6Hpnh3YL6fVNHPK6TX8n0QNH63jLFrQoF3P7jLHOnHT7xoooFu7Ad7tbGJho+wS6UaQU15ATkmKuc85xC7dFirfAARFdfGiyoGHDYdDQmVQRWlbIGZl5qzz/7z/8Av/PKo8TXXp7LGEAlxGU6b0U1mxC4AkVr+t+OQhjhTk9+MafXeHMj9SuSwtjZKQI8E7zrNQ== 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:X-MS-Exchange-SenderADCheck; bh=waiO9qll9jbUdK6DUsk5rtyhPyGboY3fAQMAxnevQbg=; b=En7leRlv6icwaWIJclSf4VgZP2xiL2BeLYMxSo5ZoUfSV03A7ShZ9h6XZ0ChyP4tF1dZ0hQ/hbVPfb5m3+xupH5JZjQ/9mf15X7Zj0pmLZ/dJyqV9WwLh/bTvhSIjeh4dbKFiqmgXNu5yFsTny8xSBV1lctdMR5cPC+hpiegIAEabQ6DowRPq/KljbYmDvhFGpxXWOyRFfiX8pCLRQODIGGiqmDGUm7zbHqaXJpt8+mO4K/aKa68IyuhYZkzadLFyAVHA9sKcRFVBKU5gMStvA9njWaEF13VMgukVdb5v/i5bMBqab+c+F7upnM9DfZoR+RmuUrC73eQ2G57EWnX3w== 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=waiO9qll9jbUdK6DUsk5rtyhPyGboY3fAQMAxnevQbg=; b=nXMLPNPNEdjfauk4bkfeb5T/fHYsMDQMzuez4oSY/yVZbnL0l2l+6Tw451KJ3r3P5XFdEeVeoY0xlVp3QxqfwnfVO0bDzjbnQOat+0q55Ar6jS49j9zJ1tPkAKl3rl8zs0bVSHmdu6iYvOAMiM9ShU2Zo3lPneoeVuz+QXG1Wbk= 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 MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) by MWHPR11MB2046.namprd11.prod.outlook.com (2603:10b6:300:28::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20; Tue, 5 May 2020 12:38:40 +0000 Received: from MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe]) by MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::81d5:b62b:3770:ffbe%10]) with mapi id 15.20.2958.030; Tue, 5 May 2020 12:38:40 +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 13/15] staging: wfx: fix alignements of function prototypes Date: Tue, 5 May 2020 14:37:55 +0200 Message-Id: <20200505123757.39506-14-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200505123757.39506-1-Jerome.Pouiller@silabs.com> References: <20200505123757.39506-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR3P189CA0022.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:52::27) To MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.home (2a01:e35:2435:66a0:1265:30ff:fefd:6e7f) by PR3P189CA0022.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:52::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20 via Frontend Transport; Tue, 5 May 2020 12:38:38 +0000 X-Mailer: git-send-email 2.26.1 X-Originating-IP: [2a01:e35:2435:66a0:1265:30ff:fefd:6e7f] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e99e4459-8cfa-4b62-3c0e-08d7f0f13d1b X-MS-TrafficTypeDiagnostic: MWHPR11MB2046: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:117; X-Forefront-PRVS: 0394259C80 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I6tkCfq7BDePnIM3Y5etNxmQb2ZiMq+Ctv2O0F+Q4KNj83ZyvjbC7akWQgB+pTwpZJjGYPajEEm20roFrwQrEFAgRUAM4FI8goR2T0bPF4wxkZMi3K6T7ra3a+BW5HGCOAOuyweFF0McFcjraUnwUdPTUoCgAtRUaqr0LqJpRUlqbQFuISVHp3M0d6rpDWAp5TvNGv1O8uvUN4DACiOkCi3U7SP1wrwzUqrdxOtzpxy1zHi3r5lMHz5fiE/1gpzSYsHxSmZWQJIDB+6mAvtRFpC0oiYEZeVBs0iibJPVHVHJimCh2qm4GGKZPJO2qaqpJ4BSppswkkV1qVe6rZwAcptFjXDJcPmK4znPLZWMR0ldd7bOzW84rv+WLffz+GzuI8EMhcuwB37pWE9gBSmMwjKZ9/sATCva+IKdgw4NnE7iPgd3dtu0DckGh5NAH3+F/CS0/Cv4HcAaS9l4hHenKCAyytWsVsDl9sMW2Iahd5xfcOoVOyHF/xkYPsjuAowLis2XkJr4gdyhTszFnCSKCw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1775.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(396003)(366004)(346002)(39850400004)(136003)(376002)(33430700001)(2906002)(36756003)(52116002)(86362001)(5660300002)(6486002)(1076003)(8676002)(66574012)(8936002)(6666004)(107886003)(2616005)(66476007)(66946007)(16526019)(186003)(66556008)(6512007)(8886007)(478600001)(4326008)(6506007)(33440700001)(54906003)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: eMbKxPnIxnANSw0kgzbrVzMBBLlyX6nFXzvSCq5R/SVxJXrFAsBDgdl86gXOt6gKvGc9umwsnz6p1PKdTJmbVyT7xt5Z73KskFWnXc5IimNCqZ0TuK1Dsz5pVh02/Vyp/Rf3mOd0e9oL8TVxqOdZ7QwocQgMB3mSL8RORSGXte3BchMNRDav5QM72wv7QdrQdJbvedkJrpk9zDGP0yc7h8cAca3fZpftyczW6Yfpyyog41OkP58HAxOmuDrUGJ6PUMRU5nJbf3O3PuO9pUc5EkhyhGhSU+onbXCTtyHmHEgOknvTTSnti6Epy9wa7ENNZ9rnO4R7sZbf43JiSApMVLYW4AvJ0+mj6fvz84pm1fHRE1XcchgZhDeLEvUUKpftziohUEhGZq0quW7zt8ZoRhmkDxVtvcO9U2eWKhl+lCMsqELUTFPKp+drhH5mZf2k0MnCDSC+nI8JsU72dkY9OMPO0OnxeCOsKmLui4+ppF1gB3jBYHcCqbrac+hRZmk2ENDJjOgYbMkWqSBW6d+31HvZpDc83XluMPpgQBsI77yxJJ1whEGMRS/YG/6koOHeL2xZg9x9L6NMRr6TyK8lnFulQiY/wqAVrBHazej9JkQOhyPgw0WFgNGrk0yTcrAMg/jPyIa8FqjoB3wSPJLko6i6FA6TSdBSl/YrdI/8Fdw5Pnp+2Rv+9OIkd1O8c3NHSVt5cDSzLOB5bVzd9Vz1ONJ9/iyTW3fTdYDzLVcuEiCP1J0kPEYf1WaYuVR7LyBEAj5xCpMM2+mFTLcukbgf6wFHGpSKlNwqbEwC8igO7hsqUGtumHdAnbNCZ30x8lukakfhZJf8UaI++7oKHZl+SG4k4Qf5OgtJ2vfoqK6kJdc= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: e99e4459-8cfa-4b62-3c0e-08d7f0f13d1b X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2020 12:38:40.1982 (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: 91ohpMgUTOoNFW3AxuacMZkihbzydmTDKG7Md14mCH5LN4KPO1SfEJvEM5lbQPMhwaJM7bp3lXpKdnD1Y+rIUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB2046 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jérôme Pouiller Some function prototypes were not correctly aligned and/or exceed 80 columns. In some other cases, the prototypes were written on more lines than necessary. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 3 +-- drivers/staging/wfx/hif_tx.c | 24 ++++++++++++------------ drivers/staging/wfx/hif_tx.h | 4 ++-- drivers/staging/wfx/hwio.c | 12 ++++++------ drivers/staging/wfx/main.c | 4 ++-- drivers/staging/wfx/sta.c | 15 +++++---------- 6 files changed, 28 insertions(+), 34 deletions(-) diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index 83a9256f09bf..f64149ab0484 100644 --- a/drivers/staging/wfx/data_tx.c +++ b/drivers/staging/wfx/data_tx.c @@ -106,8 +106,7 @@ static int wfx_tx_policy_release(struct tx_policy_cache *cache, } static int wfx_tx_policy_get(struct wfx_vif *wvif, - struct ieee80211_tx_rate *rates, - bool *renew) + struct ieee80211_tx_rate *rates, bool *renew) { int idx; struct tx_policy_cache *cache = &wvif->tx_policy_cache; diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index 511ef874a6d9..96f13d9c8c98 100644 --- a/drivers/staging/wfx/hif_tx.c +++ b/drivers/staging/wfx/hif_tx.c @@ -23,8 +23,8 @@ void wfx_init_hif_cmd(struct wfx_hif_cmd *hif_cmd) mutex_init(&hif_cmd->key_renew_lock); } -static void wfx_fill_header(struct hif_msg *hif, int if_id, unsigned int cmd, - size_t size) +static void wfx_fill_header(struct hif_msg *hif, int if_id, + unsigned int cmd, size_t size) { if (if_id == -1) if_id = 2; @@ -47,8 +47,8 @@ static void *wfx_alloc_hif(size_t body_len, struct hif_msg **hif) return NULL; } -int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, void *reply, - size_t reply_len, bool async) +int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, + void *reply, size_t reply_len, bool async) { const char *mib_name = ""; const char *mib_sep = ""; @@ -176,8 +176,8 @@ int hif_reset(struct wfx_vif *wvif, bool reset_stat) return ret; } -int hif_read_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, void *val, - size_t val_len) +int hif_read_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, + void *val, size_t val_len) { int ret; struct hif_msg *hif; @@ -207,8 +207,8 @@ int hif_read_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, void *val, return ret; } -int hif_write_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, void *val, - size_t val_len) +int hif_write_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, + void *val, size_t val_len) { int ret; struct hif_msg *hif; @@ -494,8 +494,8 @@ int hif_update_ie_beacon(struct wfx_vif *wvif, const u8 *ies, size_t ies_len) return ret; } -int hif_sl_send_pub_keys(struct wfx_dev *wdev, const uint8_t *pubkey, - const uint8_t *pubkey_hmac) +int hif_sl_send_pub_keys(struct wfx_dev *wdev, + const uint8_t *pubkey, const uint8_t *pubkey_hmac) { int ret; struct hif_msg *hif; @@ -529,8 +529,8 @@ int hif_sl_config(struct wfx_dev *wdev, const unsigned long *bitmap) return ret; } -int hif_sl_set_mac_key(struct wfx_dev *wdev, const u8 *slk_key, - int destination) +int hif_sl_set_mac_key(struct wfx_dev *wdev, + const uint8_t *slk_key, int destination) { int ret; struct hif_msg *hif; diff --git a/drivers/staging/wfx/hif_tx.h b/drivers/staging/wfx/hif_tx.h index 826851a7e950..e9eca9330178 100644 --- a/drivers/staging/wfx/hif_tx.h +++ b/drivers/staging/wfx/hif_tx.h @@ -57,8 +57,8 @@ int hif_start(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf, int hif_beacon_transmit(struct wfx_vif *wvif, bool enable); int hif_map_link(struct wfx_vif *wvif, u8 *mac_addr, int flags, int sta_id); int hif_update_ie_beacon(struct wfx_vif *wvif, const u8 *ies, size_t ies_len); -int hif_sl_set_mac_key(struct wfx_dev *wdev, const u8 *slk_key, - int destination); +int hif_sl_set_mac_key(struct wfx_dev *wdev, + const u8 *slk_key, int destination); int hif_sl_config(struct wfx_dev *wdev, const unsigned long *bitmap); int hif_sl_send_pub_keys(struct wfx_dev *wdev, const u8 *pubkey, const u8 *pubkey_hmac); diff --git a/drivers/staging/wfx/hwio.c b/drivers/staging/wfx/hwio.c index d3a141d95a0e..051d4b233b47 100644 --- a/drivers/staging/wfx/hwio.c +++ b/drivers/staging/wfx/hwio.c @@ -106,8 +106,8 @@ static int write32_bits_locked(struct wfx_dev *wdev, int reg, u32 mask, u32 val) return ret; } -static int indirect_read(struct wfx_dev *wdev, int reg, u32 addr, void *buf, - size_t len) +static int indirect_read(struct wfx_dev *wdev, int reg, u32 addr, + void *buf, size_t len) { int ret; int i; @@ -195,8 +195,8 @@ static int indirect_write_locked(struct wfx_dev *wdev, int reg, u32 addr, return ret; } -static int indirect_read32_locked(struct wfx_dev *wdev, int reg, u32 addr, - u32 *val) +static int indirect_read32_locked(struct wfx_dev *wdev, int reg, + u32 addr, u32 *val) { int ret; __le32 *tmp = kmalloc(sizeof(u32), GFP_KERNEL); @@ -212,8 +212,8 @@ static int indirect_read32_locked(struct wfx_dev *wdev, int reg, u32 addr, return ret; } -static int indirect_write32_locked(struct wfx_dev *wdev, int reg, u32 addr, - u32 val) +static int indirect_write32_locked(struct wfx_dev *wdev, int reg, + u32 addr, u32 val) { int ret; __le32 *tmp = kmalloc(sizeof(u32), GFP_KERNEL); diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index d3d86c8c92c8..de41f1671433 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -170,8 +170,8 @@ bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor) return false; } -struct gpio_desc *wfx_get_gpio(struct device *dev, int override, - const char *label) +struct gpio_desc *wfx_get_gpio(struct device *dev, + int override, const char *label) { struct gpio_desc *ret; char label_buf[256]; diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 3ad0b67a7dca..999e0f0e19af 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -139,10 +139,8 @@ u64 wfx_prepare_multicast(struct ieee80211_hw *hw, return 0; } -void wfx_configure_filter(struct ieee80211_hw *hw, - unsigned int changed_flags, - unsigned int *total_flags, - u64 unused) +void wfx_configure_filter(struct ieee80211_hw *hw, unsigned int changed_flags, + unsigned int *total_flags, u64 unused) { struct wfx_vif *wvif = NULL; struct wfx_dev *wdev = hw->priv; @@ -532,10 +530,8 @@ static void wfx_enable_beacon(struct wfx_vif *wvif, bool enable) hif_beacon_transmit(wvif, enable); } -void wfx_bss_info_changed(struct ieee80211_hw *hw, - struct ieee80211_vif *vif, - struct ieee80211_bss_conf *info, - u32 changed) +void wfx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, + struct ieee80211_bss_conf *info, u32 changed) { struct wfx_dev *wdev = hw->priv; struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; @@ -800,8 +796,7 @@ int wfx_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) return ret; } -void wfx_remove_interface(struct ieee80211_hw *hw, - struct ieee80211_vif *vif) +void wfx_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) { struct wfx_dev *wdev = hw->priv; struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv;