projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e20a5a
)
staging: rtl8723bs: hal: Replace function PHY_SetTxPowerIndex()
author
Nishka Dasgupta
<nishkadg.linux@gmail.com>
Thu, 25 Jul 2019 05:26:38 +0000
(10:56 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 07:58:26 +0000
(09:58 +0200)
Remove function PHY_SetTxPowerIndex as it does nothing except call
PHY_SetTxPowerIndex_8723B.
Rename PHY_SetTxPowerIndex_8723B to PHY_SetTxPowerIndex to maintain
compatibility with call site.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link:
https://lore.kernel.org/r/20190725052645.2372-2-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
patch
|
blob
|
history
drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
patch
|
blob
|
history
drivers/staging/rtl8723bs/include/hal_com_phycfg.h
patch
|
blob
|
history
drivers/staging/rtl8723bs/include/hal_phy_cfg.h
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
index 336764464e7dc459ca362e8f98c4ff6d09071726..7b1e6c4a2e8dd2ac7f5f263dc0a4a261f76d8749 100644
(file)
--- a/
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
+++ b/
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
@@
-2051,13
+2051,6
@@
u8 PHY_GetTxPowerIndex(
return PHY_GetTxPowerIndex_8723B(padapter, RFPath, Rate, BandWidth, Channel);
}
-void PHY_SetTxPowerIndex(
- struct adapter *padapter, u32 PowerIndex, u8 RFPath, u8 Rate
-)
-{
- PHY_SetTxPowerIndex_8723B(padapter, PowerIndex, RFPath, Rate);
-}
-
void Hal_ChannelPlanToRegulation(struct adapter *Adapter, u16 ChannelPlan)
{
struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);
diff --git
a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
b/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
index 25c75b977666a67fabb1903a8fcac4c65166c3d2..b02ff10fedbfaca0aa11f64a46a75713bbd2fb31 100644
(file)
--- a/
drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
+++ b/
drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c
@@
-585,7
+585,7
@@
int PHY_RFConfig8723B(struct adapter *Adapter)
* <20120830, Kordan>
**************************************************************************************************************/
-void PHY_SetTxPowerIndex
_8723B
(
+void PHY_SetTxPowerIndex(
struct adapter *Adapter,
u32 PowerIndex,
u8 RFPath,
diff --git
a/drivers/staging/rtl8723bs/include/hal_com_phycfg.h
b/drivers/staging/rtl8723bs/include/hal_com_phycfg.h
index f841546584a79322e3bd34f678986eb651388f02..f3521b7ae295c300cd54e3ad27c212b8dd5f0512 100644
(file)
--- a/
drivers/staging/rtl8723bs/include/hal_com_phycfg.h
+++ b/
drivers/staging/rtl8723bs/include/hal_com_phycfg.h
@@
-222,14
+222,6
@@
enum CHANNEL_WIDTH BandWidth,
u8 Channel
);
-void
-PHY_SetTxPowerIndex(
-struct adapter * padapter,
-u32 PowerIndex,
-u8 RFPath,
-u8 Rate
- );
-
void
Hal_ChannelPlanToRegulation(
struct adapter * Adapter,
diff --git
a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
index 640427f407e37ad4d337f6c597f27f30703f3eae..1ebd7094705fc5e15c464573fcdbfe5f163a04ed 100644
(file)
--- a/
drivers/staging/rtl8723bs/include/hal_phy_cfg.h
+++ b/
drivers/staging/rtl8723bs/include/hal_phy_cfg.h
@@
-65,7
+65,7
@@
int PHY_RFConfig8723B(struct adapter *Adapter );
s32 PHY_MACConfig8723B(struct adapter *padapter);
void
-PHY_SetTxPowerIndex
_8723B
(
+PHY_SetTxPowerIndex(
struct adapter * Adapter,
u32 PowerIndex,
u8 RFPath,