Commit 2e29e6a6 authored by Harsh Kumar's avatar Harsh Kumar Committed by Greg Kroah-Hartman

Staging: winbond: Made local functions static

Few functions are used only in one file. They are not included in any
other .h or .c files (I used grep to check). They seem to be local functions.
So, I have made them static.
I have also inlined one function as it is a one line function.
Signed-off-by: default avatarHarsh Kumar <harsh1kumar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b5153e97
...@@ -920,20 +920,20 @@ void Uxx_power_on_procedure(struct hw_data *pHwData) ...@@ -920,20 +920,20 @@ void Uxx_power_on_procedure(struct hw_data *pHwData)
Wb35Reg_WriteSync(pHwData, 0x03f8, 0x7ff); Wb35Reg_WriteSync(pHwData, 0x03f8, 0x7ff);
} }
void Set_ChanIndep_RfData_al7230_24(struct hw_data *pHwData, u32 *pltmp , char number) static void Set_ChanIndep_RfData_al7230_24(struct hw_data *pHwData, u32 *pltmp,
char number)
{ {
u8 i; u8 i;
for (i = 0; i < number; i++) { for (i = 0; i < number; i++) {
pHwData->phy_para[i] = al7230_rf_data_24[i]; pHwData->phy_para[i] = al7230_rf_data_24[i];
pltmp[i] = (1 << 31) | (0 << 30) | (24 << 24) | (al7230_rf_data_24[i] & 0xffffff); pltmp[i] = (1 << 31) | (0 << 30) | (24 << 24) | (al7230_rf_data_24[i] & 0xffffff);
} }
} }
void Set_ChanIndep_RfData_al7230_50(struct hw_data *pHwData, u32 *pltmp, char number) static void Set_ChanIndep_RfData_al7230_50(struct hw_data *pHwData, u32 *pltmp,
char number)
{ {
u8 i; u8 i;
for (i = 0; i < number; i++) { for (i = 0; i < number; i++) {
pHwData->phy_para[i] = al7230_rf_data_50[i]; pHwData->phy_para[i] = al7230_rf_data_50[i];
pltmp[i] = (1 << 31) | (0 << 30) | (24 << 24) | (al7230_rf_data_50[i] & 0xffffff); pltmp[i] = (1 << 31) | (0 << 30) | (24 << 24) | (al7230_rf_data_50[i] & 0xffffff);
...@@ -1263,7 +1263,7 @@ void RFSynthesizer_initial(struct hw_data *pHwData) ...@@ -1263,7 +1263,7 @@ void RFSynthesizer_initial(struct hw_data *pHwData)
} }
} }
void BBProcessor_AL7230_2400(struct hw_data *pHwData) static void BBProcessor_AL7230_2400(struct hw_data *pHwData)
{ {
struct wb35_reg *reg = &pHwData->reg; struct wb35_reg *reg = &pHwData->reg;
u32 pltmp[12]; u32 pltmp[12];
...@@ -1304,7 +1304,7 @@ void BBProcessor_AL7230_2400(struct hw_data *pHwData) ...@@ -1304,7 +1304,7 @@ void BBProcessor_AL7230_2400(struct hw_data *pHwData)
Wb35Reg_BurstWrite(pHwData, 0x1030, pltmp, 12, AUTO_INCREMENT); Wb35Reg_BurstWrite(pHwData, 0x1030, pltmp, 12, AUTO_INCREMENT);
} }
void BBProcessor_AL7230_5000(struct hw_data *pHwData) static void BBProcessor_AL7230_5000(struct hw_data *pHwData)
{ {
struct wb35_reg *reg = &pHwData->reg; struct wb35_reg *reg = &pHwData->reg;
u32 pltmp[12]; u32 pltmp[12];
...@@ -1620,22 +1620,24 @@ void BBProcessor_initial(struct hw_data *pHwData) ...@@ -1620,22 +1620,24 @@ void BBProcessor_initial(struct hw_data *pHwData)
reg->SQ3_filter[i] = 0x2f; /* half of Bit 0 ~ 6 */ reg->SQ3_filter[i] = 0x2f; /* half of Bit 0 ~ 6 */
} }
void set_tx_power_per_channel_max2829(struct hw_data *pHwData, struct chan_info Channel) static inline void set_tx_power_per_channel_max2829(struct hw_data *pHwData,
struct chan_info Channel)
{ {
RFSynthesizer_SetPowerIndex(pHwData, 100); RFSynthesizer_SetPowerIndex(pHwData, 100);
} }
void set_tx_power_per_channel_al2230(struct hw_data *pHwData, struct chan_info Channel) static void set_tx_power_per_channel_al2230(struct hw_data *pHwData,
struct chan_info Channel)
{ {
u8 index = 100; u8 index = 100;
if (pHwData->TxVgaFor24[Channel.ChanNo - 1] != 0xff) if (pHwData->TxVgaFor24[Channel.ChanNo - 1] != 0xff)
index = pHwData->TxVgaFor24[Channel.ChanNo - 1]; index = pHwData->TxVgaFor24[Channel.ChanNo - 1];
RFSynthesizer_SetPowerIndex(pHwData, index); RFSynthesizer_SetPowerIndex(pHwData, index);
} }
void set_tx_power_per_channel_al7230(struct hw_data *pHwData, struct chan_info Channel) static void set_tx_power_per_channel_al7230(struct hw_data *pHwData,
struct chan_info Channel)
{ {
u8 i, index = 100; u8 i, index = 100;
...@@ -1658,7 +1660,8 @@ void set_tx_power_per_channel_al7230(struct hw_data *pHwData, struct chan_info ...@@ -1658,7 +1660,8 @@ void set_tx_power_per_channel_al7230(struct hw_data *pHwData, struct chan_info
RFSynthesizer_SetPowerIndex(pHwData, index); RFSynthesizer_SetPowerIndex(pHwData, index);
} }
void set_tx_power_per_channel_wb242(struct hw_data *pHwData, struct chan_info Channel) static void set_tx_power_per_channel_wb242(struct hw_data *pHwData,
struct chan_info Channel)
{ {
u8 index = 100; u8 index = 100;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment