mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 13:13:57 +08:00
staging: rtl8192u: remove unused dm_gpio_change_rf_callback()
This patch removes dm_gpio_change_rf_callback() because it is not called anywhere and it resides inside an #ifdef RTL8192E guard while RTL8192E is not defined. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1e27ab87d1
commit
dd747fa582
@ -2850,79 +2850,6 @@ static void dm_check_pbc_gpio(struct net_device *dev)
|
||||
|
||||
}
|
||||
|
||||
#ifdef RTL8192E
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Function: dm_GPIOChangeRF
|
||||
* Overview: PCI will not support workitem call back HW radio on-off control.
|
||||
*
|
||||
* Input: NONE
|
||||
*
|
||||
* Output: NONE
|
||||
*
|
||||
* Return: NONE
|
||||
*
|
||||
* Revised History:
|
||||
* When Who Remark
|
||||
* 02/21/2008 MHC Create Version 0.
|
||||
*
|
||||
*---------------------------------------------------------------------------*/
|
||||
extern void dm_gpio_change_rf_callback(struct work_struct *work)
|
||||
{
|
||||
struct delayed_work *dwork = container_of(work,struct delayed_work,work);
|
||||
struct r8192_priv *priv = container_of(dwork,struct r8192_priv,gpio_change_rf_wq);
|
||||
struct net_device *dev = priv->ieee80211->dev;
|
||||
u8 tmp1byte;
|
||||
RT_RF_POWER_STATE eRfPowerStateToSet;
|
||||
bool bActuallySet = false;
|
||||
|
||||
do{
|
||||
bActuallySet=false;
|
||||
|
||||
if(!priv->up)
|
||||
{
|
||||
RT_TRACE((COMP_INIT | COMP_POWER | COMP_RF),"dm_gpio_change_rf_callback(): Callback function breaks out!!\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
// 0x108 GPIO input register is read only
|
||||
//set 0x108 B1= 1: RF-ON; 0: RF-OFF.
|
||||
read_nic_byte(dev, GPI, &tmp1byte);
|
||||
|
||||
eRfPowerStateToSet = (tmp1byte&BIT1) ? eRfOn : eRfOff;
|
||||
|
||||
if((priv->bHwRadioOff == true) && (eRfPowerStateToSet == eRfOn))
|
||||
{
|
||||
RT_TRACE(COMP_RF, "gpiochangeRF - HW Radio ON\n");
|
||||
|
||||
priv->bHwRadioOff = false;
|
||||
bActuallySet = true;
|
||||
}
|
||||
else if ((priv->bHwRadioOff == false) && (eRfPowerStateToSet == eRfOff))
|
||||
{
|
||||
RT_TRACE(COMP_RF, "gpiochangeRF - HW Radio OFF\n");
|
||||
priv->bHwRadioOff = true;
|
||||
bActuallySet = true;
|
||||
}
|
||||
|
||||
if(bActuallySet)
|
||||
{
|
||||
#ifdef TO_DO
|
||||
MgntActSet_RF_State(dev, eRfPowerStateToSet, RF_CHANGE_BY_HW);
|
||||
//DrvIFIndicateCurrentPhyStatus(pAdapter);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
msleep(2000);
|
||||
}
|
||||
|
||||
}
|
||||
}while(TRUE)
|
||||
|
||||
} /* dm_GPIOChangeRF */
|
||||
|
||||
#endif
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Function: DM_RFPathCheckWorkItemCallBack()
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user