Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4666148pxj; Tue, 22 Jun 2021 05:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeh5Ai9yYH3ccG+jXnDKmqvyvSRbKr4PouwbRMx2TP2YNxeNYjDD57R4qiaPcVZAjPGzSm X-Received: by 2002:a05:6638:2491:: with SMTP id x17mr3802190jat.33.1624365154995; Tue, 22 Jun 2021 05:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624365154; cv=none; d=google.com; s=arc-20160816; b=ESeSstblZ0e4wEJdWduPoppyPE0sriu/tQKFP3JCsFMhzTQ50fJSgS0/xJ0yIqGAd6 iMiOmYfV3M7GN829UoQFPrhcJadiqTMQea1rSbAIqpFaA6YJeiNYsAYjTKCUBehlIGcq E7AFzS1TaNndKRSYJbPgYJZpa1L/6l2eVvIJFqW2TuPe0OzH7HwErKO8EiW/U0pEBiHk GN2reM0RzNnr2ZNNkby1jFGORT43O2Pyukg8eV193cdr5Nc5qjQXQQhXOMn9G3tC0dqn m9llTKPcaewCDRRJTB1LZnmoUKGyWId3xVyA27F9e1X1iJAq6Andrc7g7Vb8b4WmrhSJ a2bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6aSbeaV8aUHmxt7bo4GWSO+UYVKMaQnwiL3Al5lNldQ=; b=cVqB3ncA47hRHhhZclZqSLyrnj030hPx3w5sPSCNyVr2Q28lDL9x7ZYrsP7sUa1bWv aPGXptZfHv9iv3mYkDm0rpHWAEYPvLdAXaeXqxW5xadoT0hp/8ZOmJC4xeN02ZPpYxd3 xXci+hM9kor8VMqa5GmHMNVArersrBkFdx/fdBXCpRe2vE3uqkhBNtoXWWUW+r9RJAIZ klUQz+q/iKV7WgkfAjaXsyPi0fCy9qxca+vO3shLdmr2F/iugkb+AtgJ5AytYLLrnnP5 iPJ2Wh2br2fKkxfp68+F6LSYMBgOtC5kV4+wllPnUZ134TsGFm1TwtuBt+2R/LSHKsNz PqwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tiZjVOFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si18992470ilu.154.2021.06.22.05.32.23; Tue, 22 Jun 2021 05:32:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tiZjVOFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231709AbhFVMcm (ORCPT + 99 others); Tue, 22 Jun 2021 08:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231620AbhFVMcO (ORCPT ); Tue, 22 Jun 2021 08:32:14 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 795C7C061574 for ; Tue, 22 Jun 2021 05:29:57 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id a13so1652962wrf.10 for ; Tue, 22 Jun 2021 05:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6aSbeaV8aUHmxt7bo4GWSO+UYVKMaQnwiL3Al5lNldQ=; b=tiZjVOFAaUxbHAPVL+Ql6YbhBEZIN4m/Ar/gWbcEZTLzHmcBBAgcbYgvCdv+HJypx7 2CBX8osXD0SW8eAyl+j9En/Iag3+oqAXj3+27/rcDN8c1aks4yFBpgENbq4ReNqxbKxG 9/UAaqkxEmfusqV6Jlh68oOuLMcdI7WjN+1nEYICY6R0bh+U2DbUxN3tFi+vKmmSz/k7 Wl4zxvHv1CS2cdDLb0djmIXLWwvnZIBs2aKG7RJit7gUFJcMvQCYx7DpGktWm6R5Iur+ O3wXbEAcPcI70Ro/4faImRC2d5fB5enM5LZR0eGZcrcqSxrZ+o9DpFQgu3NMcbMb4hCM cMww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6aSbeaV8aUHmxt7bo4GWSO+UYVKMaQnwiL3Al5lNldQ=; b=YKosh+ZK8y00Q9LlOQ4oeGfy+Y/cdO2T/6Enet4bcyGbyxedwWJGAt9w7U/NyM+rOd +fNOcB3M3suzMum5nigTjYF/FLQLZL8PD19mCJ1ej4R+V9lI3x0wXsUIUl6Ko5ALxxm+ 56f2v4ffMDnJd4GEkW8pplbOFF2ZXql/gach4oP3BKkQztAgD2UrRsV5i0Sl9Co01GHj AX3J3mjOMX9oT1rZVgV/qlh/DDPg1RLjoqRkl7LHzB2486c03aZLsUsQWf6dOGM0Yc6x KOli+xMdyzkKkkeozU5bhTh/yw4lJQPqFLcQ1sKAQt6SoqEpnMWs3J85KNMuiuNc6uOO 89Xg== X-Gm-Message-State: AOAM533FFvSLcuArqHRHZJsTxIvCuUClnMj594iJsj8fxfmQAuXmgG2v mAt7ftGveCyqa/+5RffZXijyFQoNguKfVA== X-Received: by 2002:a05:6000:180f:: with SMTP id m15mr4514383wrh.102.1624364995961; Tue, 22 Jun 2021 05:29:55 -0700 (PDT) Received: from agape ([5.171.73.108]) by smtp.gmail.com with ESMTPSA id d15sm22240349wrb.42.2021.06.22.05.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 05:29:55 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 08/17] staging: rtl8723bs: beautify prototypes in include/hal_com_phycfg.h Date: Tue, 22 Jun 2021 14:29:33 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org beautify function prototypes in incldue/hal_com_phycfg.h in order to ease grep searches. Signed-off-by: Fabio Aiuto --- .../rtl8723bs/include/hal_com_phycfg.h | 188 +++++------------- 1 file changed, 48 insertions(+), 140 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/hal_com_phycfg.h b/drivers/staging/rtl8723bs/include/hal_com_phycfg.h index a30e1e09826d..3d95ab1986b1 100644 --- a/drivers/staging/rtl8723bs/include/hal_com_phycfg.h +++ b/drivers/staging/rtl8723bs/include/hal_com_phycfg.h @@ -70,147 +70,55 @@ struct bb_register_def { }; -u8 -PHY_GetTxPowerByRateBase( -struct adapter *Adapter, -u8 RfPath, -u8 TxNum, -enum rate_section RateSection - ); - -u8 -PHY_GetRateSectionIndexOfTxPowerByRate( -struct adapter *padapter, -u32 RegAddr, -u32 BitMask - ); - -void -PHY_GetRateValuesOfTxPowerByRate( -struct adapter *padapter, -u32 RegAddr, -u32 BitMask, -u32 Value, -u8 *RateIndex, -s8 *PwrByRateVal, -u8 *RateNum - ); - -u8 -PHY_GetRateIndexOfTxPowerByRate( -u8 Rate - ); - -void -PHY_SetTxPowerIndexByRateSection( -struct adapter *padapter, -u8 RFPath, -u8 Channel, -u8 RateSection - ); - -s8 -PHY_GetTxPowerByRate( -struct adapter *padapter, -u8 RFPath, -u8 TxNum, -u8 RateIndex - ); - -void -PHY_SetTxPowerByRate( -struct adapter *padapter, -u8 RFPath, -u8 TxNum, -u8 Rate, -s8 Value - ); - -void -PHY_SetTxPowerLevelByPath( -struct adapter *Adapter, -u8 channel, -u8 path - ); - -void -PHY_SetTxPowerIndexByRateArray( -struct adapter *padapter, -u8 RFPath, -enum channel_width BandWidth, -u8 Channel, -u8 *Rates, -u8 RateArraySize - ); - -void -PHY_InitTxPowerByRate( -struct adapter *padapter - ); - -void -PHY_StoreTxPowerByRate( -struct adapter *padapter, -u32 RfPath, -u32 TxNum, -u32 RegAddr, -u32 BitMask, -u32 Data - ); - -void -PHY_TxPowerByRateConfiguration( - struct adapter *padapter - ); - -u8 -PHY_GetTxPowerIndexBase( -struct adapter *padapter, -u8 RFPath, -u8 Rate, -enum channel_width BandWidth, -u8 Channel - ); +u8 PHY_GetTxPowerByRateBase(struct adapter *Adapter, u8 RfPath, u8 TxNum, + enum rate_section RateSection); + +u8 PHY_GetRateSectionIndexOfTxPowerByRate(struct adapter *padapter, u32 RegAddr, + u32 BitMask); + +void PHY_GetRateValuesOfTxPowerByRate(struct adapter *padapter, u32 RegAddr, + u32 BitMask, u32 Value, u8 *RateIndex, + s8 *PwrByRateVal, u8 *RateNum); + +u8 PHY_GetRateIndexOfTxPowerByRate(u8 Rate); + +void PHY_SetTxPowerIndexByRateSection(struct adapter *padapter, u8 RFPath, u8 Channel, + u8 RateSection); + +s8 PHY_GetTxPowerByRate(struct adapter *padapter, u8 RFPath, u8 TxNum, u8 RateIndex); + +void PHY_SetTxPowerByRate(struct adapter *padapter, u8 RFPath, u8 TxNum, u8 Rate, + s8 Value); + +void PHY_SetTxPowerLevelByPath(struct adapter *Adapter, u8 channel, u8 path); + +void PHY_SetTxPowerIndexByRateArray(struct adapter *padapter, u8 RFPath, + enum channel_width BandWidth, u8 Channel, + u8 *Rates, u8 RateArraySize); + +void PHY_InitTxPowerByRate(struct adapter *padapter); + +void PHY_StoreTxPowerByRate(struct adapter *padapter, u32 RfPath, u32 TxNum, + u32 RegAddr, u32 BitMask, u32 Data); + +void PHY_TxPowerByRateConfiguration(struct adapter *padapter); + +u8 PHY_GetTxPowerIndexBase(struct adapter *padapter, u8 RFPath, u8 Rate, + enum channel_width BandWidth, u8 Channel); s8 phy_get_tx_pwr_lmt(struct adapter *adapter, u32 RegPwrTblSel, - enum channel_width Bandwidth, -u8 RfPath, -u8 DataRate, -u8 Channel - ); - -void -PHY_SetTxPowerLimit( -struct adapter *Adapter, -u8 *Regulation, -u8 *Bandwidth, -u8 *RateSection, -u8 *RfPath, -u8 *Channel, -u8 *PowerLimit - ); - -void -PHY_ConvertTxPowerLimitToPowerIndex( -struct adapter *Adapter - ); - -void -PHY_InitTxPowerLimit( -struct adapter *Adapter - ); - -s8 -PHY_GetTxPowerTrackingOffset( - struct adapter *padapter, - u8 Rate, - u8 RFPath - ); - -void -Hal_ChannelPlanToRegulation( -struct adapter *Adapter, -u16 ChannelPlan - ); + enum channel_width Bandwidth, u8 RfPath, u8 DataRate, + u8 Channel); + +void PHY_SetTxPowerLimit(struct adapter *Adapter, u8 *Regulation, u8 *Bandwidth, + u8 *RateSection, u8 *RfPath, u8 *Channel, u8 *PowerLimit); + +void PHY_ConvertTxPowerLimitToPowerIndex(struct adapter *Adapter); + +void PHY_InitTxPowerLimit(struct adapter *Adapter); + +s8 PHY_GetTxPowerTrackingOffset(struct adapter *padapter, u8 Rate, u8 RFPath); + +void Hal_ChannelPlanToRegulation(struct adapter *Adapter, u16 ChannelPlan); #endif /* __HAL_COMMON_H__ */ -- 2.20.1