staging: rtl8723au: Eliminate unused HW_VAR_TRIGGER_GPIO_0
... and related functions Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
aafb8684a8
commit
4b03eb73ca
|
@ -1496,21 +1496,6 @@ static void ReadAdapterInfo8723AU(struct rtw_adapter *Adapter)
|
|||
_ReadAdapterInfo8723AU(Adapter);
|
||||
}
|
||||
|
||||
#define GPIO_DEBUG_PORT_NUM 0
|
||||
static void rtl8723au_trigger_gpio_0(struct rtw_adapter *padapter)
|
||||
{
|
||||
u32 gpioctrl;
|
||||
DBG_8723A("==> trigger_gpio_0...\n");
|
||||
rtw_write16_async(padapter, REG_GPIO_PIN_CTRL, 0);
|
||||
rtw_write8_async(padapter, REG_GPIO_PIN_CTRL+2, 0xFF);
|
||||
gpioctrl = (BIT(GPIO_DEBUG_PORT_NUM) << 24)|
|
||||
(BIT(GPIO_DEBUG_PORT_NUM) << 16);
|
||||
rtw_write32_async(padapter, REG_GPIO_PIN_CTRL, gpioctrl);
|
||||
gpioctrl |= (BIT(GPIO_DEBUG_PORT_NUM)<<8);
|
||||
rtw_write32_async(padapter, REG_GPIO_PIN_CTRL, gpioctrl);
|
||||
DBG_8723A("<=== trigger_gpio_0...\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* If variable not handled here,
|
||||
* some variables will be processed in SetHwReg8723A()
|
||||
|
@ -1518,9 +1503,6 @@ static void rtl8723au_trigger_gpio_0(struct rtw_adapter *padapter)
|
|||
static void SetHwReg8723AU(struct rtw_adapter *Adapter, u8 variable, u8 *val)
|
||||
{
|
||||
switch (variable) {
|
||||
case HW_VAR_TRIGGER_GPIO_0:
|
||||
rtl8723au_trigger_gpio_0(Adapter);
|
||||
break;
|
||||
default:
|
||||
SetHwReg8723A(Adapter, variable, val);
|
||||
break;
|
||||
|
|
|
@ -44,7 +44,6 @@ enum HW_VARIABLES {
|
|||
HW_VAR_TDLS_INIT_CH_SEN,
|
||||
HW_VAR_TDLS_RS_RCR,
|
||||
HW_VAR_TDLS_DONE_CH_SEN,
|
||||
HW_VAR_TRIGGER_GPIO_0,
|
||||
HW_VAR_BT_SET_COEXIST,
|
||||
HW_VAR_BT_ISSUE_DELBA,
|
||||
HW_VAR_CURRENT_ANTENNA,
|
||||
|
|
Loading…
Reference in a new issue