staging: rtl8723au: Eliminate unused HW_VAR_TRIGGER_GPIO_0
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Apr 2014 21:20:48 +0000 (23:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:10 +0000 (08:29 -0700)
... and related functions

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/usb_halinit.c
drivers/staging/rtl8723au/include/hal_intf.h

index aaa81f87cc6e1dcdb3f50de81702bd3bb7fe032e..382bca56825a21fceb6e4fe349cf085341f35d2d 100644 (file)
@@ -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;
index d86a8f12b822ad321781c197d33ca23d99b8c63f..a4b48772fd8869572d132aa5fd42c24a3d6a3bca 100644 (file)
@@ -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,