From patchwork Tue May 5 12:37:57 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: 219884 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=-9.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, 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 F0CA6C47258 for ; Tue, 5 May 2020 12:39:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C893F20735 for ; Tue, 5 May 2020 12:39:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="YcY3khg6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729214AbgEEMjI (ORCPT ); Tue, 5 May 2020 08:39:08 -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 S1729075AbgEEMjE (ORCPT ); Tue, 5 May 2020 08:39:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YszpHvSDsg8pNtCokNrZkXBaebzT4rfRjGZLB7UJpz0lbKzYXRZW1bZgpEe3PbhhWUJrbQpLkHm9OLhymfRIYNIdd5RY5Ysz2SwvKz9Y9w1XTnxuTHdXfOD0c7K8Q7PCVHgyEVEaET8aYux+r2QelJcVxy/AAvER0tkc2ME2sguy7WIEYPL9/LRI5+8eqXIrv0mgmX8unGtcOz8eHLp/b9BapK3VzTzXK+iHtnVlDRfy4WcO+2ooMAhWYw90NJnR5AfOs7zog2pgkE7fnCZ2LMY14BUXNftkHLsh2csdvZkO6AA0tphGmR6RTlCiodIHATEQaLb13IbLfncPgdnaew== 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=hvVYFq5Ib859CrVaN8bCL+/Tl/BK9dvkNhn9GJuSDnw=; b=BXhhKsY0CoKuQ5O53ipP8mmrqLVc6zQB3Eu+vrCe5IxJ/8DRqBIKrpWdL0pg2T7xLLnY4lrYXnXk2w5Ipr2qcDY/ZNmdI0nPusDw7bZpuOB7SH8Uyu8RpXfzxqGS46om7//3Q8xiBd0QK9wvQeCN/fntonskYCQwadNBFPznDjjVDcaXWjnZbDcBEfBEU+BZzUhkejQThsPEmSBSlLAFPMi9jfTZmbav0ar6VqfrE5eTMFHd31cKi1d4iRxQja++OsjcRndqFpj6xHOxtobTIj6/jWRYM9gIEHo2N/gCQta6toVTZSPaD3MMCdishy4hygSMo3Ch8DKJoH1FPiVeBw== 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=hvVYFq5Ib859CrVaN8bCL+/Tl/BK9dvkNhn9GJuSDnw=; b=YcY3khg6CjJgz5H4a1wUPr5uSO6uYrCDKJrFhB1CCjxNa8aK3ky7mGZLanhbJ92G2S406U3NaS4/qpBT6Y0gZ6dZtJ3JXMc2Dz7kGrlr8nxsT37L+XWDyMjlDKo9rIW/5DDj9kXKxVWpNK9JxRMy2beJ2GD4DvQ6CR/si9iFKHE= 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:44 +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:44 +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 15/15] staging: wfx: use kernel types instead of c99 ones Date: Tue, 5 May 2020 14:37:57 +0200 Message-Id: <20200505123757.39506-16-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:42 +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: ea508385-2c43-4942-3880-08d7f0f13fcf X-MS-TrafficTypeDiagnostic: MWHPR11MB2046: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-Forefront-PRVS: 0394259C80 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qYsmir0SyA7LPx+6v/QaSJczhRDSckzNtzmoCgf95W0uUAzjHiBk6nTdqWpsitEPFs0/M1GV2uKM8oRHBP2RSZsAo9ATk731iq8Sr8fhStxT29KjJ+s8CRKiCmgTsh9hI4QZ30P7wKCkXy8u/gOFOfAaIFSmL8BkIjgSw8o4bUxsrcsd09mKUwtu67Tue+5ZzHrzH12AfeStAS5lRww0akfMUdDoVZC0Njr7FjX4kIzMMzJb7Egd5BHXILUWJ59HkJ1d53rDsK7qhO9LNFYVAUYl/AHfdB8GGw4hHJSnrnf+1phpCkZabHQxa6hFOxCKrVMZVBhah6AT0joahpOmaS+rvBGOa5TCA0yCPVnINoacWHLxqsJZO9/b56aPcX7X1chMneGz8iJ3gZk3M4+hPLRunbh5P1+xMLRfTL3ZFuNN5vTNHoG/awNxZl+VmGHZ7VoEgknQYpBEg/p7VJ0WdlqLOpOsRoehYtg0acDsiNzspHtXsOPL7ukuzAAUivr2O2EEftJX52FncM1490r1Tg== 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: vIIY5hbFvcOb8SdBu/psX0WESD7zKVGPJRpf6al44MYh4u7VDpr/CMiQupsKbOJbAhkBz9iEqdvfDuNtxnbaHyNtaUteWdZ5N6igZCXKXp0h2Dh9ktDwDouKGq66vpjL+W/ViN1Kdo9auGdhVRjhK1berwquPYymzP4wYNWIR8QFHWXFdrfly7yIoRkziO1XsGFeF6bZzUBFGQcH4cqbpytONCl2ELLdEOu4vjgu5S48EH1A7DNyTwv1H7CQk+qvlSHBNKDB5XKkaCT9WxmJWF0vTL2yJ85pXKd/DXxhrg76xQPAoSTdX/E19wwI3LLw36uiQRdZ1yxLZH50TnadabOuz6vqGN1umKhosZBgaz6l7EOFWImsv6oAi/1DOL0hPIPUHnQNbpwfLsnWnDxsj0scirhIiP7+sER/6U+ds4jkrEkOANx5idyeg0c9+FL1FPUWaAQW9jHW4dQatamJk+7kEYu43iuZIOsyvQgTf02HwkUBuzywDeSmq/9K2SSJL4kHRYHrBsRkUnshvixWCC6GIvqY7hsMxkz1ZWg57/fv+AA+9XfSQA40OK48fCmFxNee6U5veielZ/iXQ3WcKUv6Te6SKgVvXUDXnphyci0oA6uWP7x4B19VLeFoqRzPy20AFpV3dansCB0IyjVeByCBCiQsOCO38HOEyPkpvo47Y/k9SqtExck+II2jFpqZ8H0w4vO7R6/i4WQffRc+rMhv13fFOznqCo5k+QkOUxByH/Sxh2oE+5wn4Ga7laT3sq1BadVU5vyWGsFpYyiWyDVKxiNajCIemsjuSXkvCn9SO15ERj981yw3TN5mK8fgNPuqRlSAqdjaU3tGWp/Zm/VM+/FqlNJZnB9gJ87P3JQ= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea508385-2c43-4942-3880-08d7f0f13fcf X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2020 12:38:44.6933 (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: R6FH7byR2VblTxADzAnSHx0zHvN2obpf/yVYOT9rtp3QKxcOnErD8fBjuuoAqSf73t5lyBHrVFuDtUD+3JAx3w== 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 The kernel coding style promotes the use of kernel types (u8, u16, u32, etc...) instead of the C99 ones. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c | 5 ++--- drivers/staging/wfx/hif_tx_mib.c | 2 +- drivers/staging/wfx/hif_tx_mib.h | 2 +- drivers/staging/wfx/main.c | 4 ++-- drivers/staging/wfx/main.h | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index b083fcace303..58013c019192 100644 --- a/drivers/staging/wfx/hif_tx.c +++ b/drivers/staging/wfx/hif_tx.c @@ -495,7 +495,7 @@ int hif_update_ie_beacon(struct wfx_vif *wvif, const u8 *ies, size_t ies_len) } int hif_sl_send_pub_keys(struct wfx_dev *wdev, - const uint8_t *pubkey, const uint8_t *pubkey_hmac) + const u8 *pubkey, const u8 *pubkey_hmac) { int ret; struct hif_msg *hif; @@ -529,8 +529,7 @@ 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 uint8_t *slk_key, int destination) +int hif_sl_set_mac_key(struct wfx_dev *wdev, const u8 *slk_key, int destination) { int ret; struct hif_msg *hif; diff --git a/drivers/staging/wfx/hif_tx_mib.c b/drivers/staging/wfx/hif_tx_mib.c index 6fdde5a4c9a1..65381b22437e 100644 --- a/drivers/staging/wfx/hif_tx_mib.c +++ b/drivers/staging/wfx/hif_tx_mib.c @@ -215,7 +215,7 @@ int hif_set_association_mode(struct wfx_vif *wvif, } int hif_set_tx_rate_retry_policy(struct wfx_vif *wvif, - int policy_index, uint8_t *rates) + int policy_index, u8 *rates) { struct hif_mib_set_tx_rate_retry_policy *arg; size_t size = struct_size(arg, tx_rate_retry_policy, 1); diff --git a/drivers/staging/wfx/hif_tx_mib.h b/drivers/staging/wfx/hif_tx_mib.h index bce35eb7eaa0..86683de7de7c 100644 --- a/drivers/staging/wfx/hif_tx_mib.h +++ b/drivers/staging/wfx/hif_tx_mib.h @@ -36,7 +36,7 @@ int hif_set_block_ack_policy(struct wfx_vif *wvif, int hif_set_association_mode(struct wfx_vif *wvif, struct ieee80211_bss_conf *info); int hif_set_tx_rate_retry_policy(struct wfx_vif *wvif, - int policy_index, uint8_t *rates); + int policy_index, u8 *rates); int hif_set_mac_addr_condition(struct wfx_vif *wvif, int idx, const u8 *mac_addr); int hif_set_uc_mc_bc_condition(struct wfx_vif *wvif, diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 18c96b82c66e..25d70ebe9933 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -203,7 +203,7 @@ struct gpio_desc *wfx_get_gpio(struct device *dev, } /* NOTE: wfx_send_pds() destroy buf */ -int wfx_send_pds(struct wfx_dev *wdev, unsigned char *buf, size_t len) +int wfx_send_pds(struct wfx_dev *wdev, u8 *buf, size_t len) { int ret; int start, brace_level, i; @@ -252,7 +252,7 @@ static int wfx_send_pdata_pds(struct wfx_dev *wdev) { int ret = 0; const struct firmware *pds; - unsigned char *tmp_buf; + u8 *tmp_buf; ret = request_firmware(&pds, wdev->pdata.file_pds, wdev->dev); if (ret) { diff --git a/drivers/staging/wfx/main.h b/drivers/staging/wfx/main.h index a0f37c8ce3df..f832ce409fda 100644 --- a/drivers/staging/wfx/main.h +++ b/drivers/staging/wfx/main.h @@ -41,6 +41,6 @@ void wfx_release(struct wfx_dev *wdev); struct gpio_desc *wfx_get_gpio(struct device *dev, int override, const char *label); bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor); -int wfx_send_pds(struct wfx_dev *wdev, unsigned char *buf, size_t len); +int wfx_send_pds(struct wfx_dev *wdev, u8 *buf, size_t len); #endif