提交 62b0d72b 编写于 作者: J Jes Sorensen 提交者: Greg Kroah-Hartman

staging: rtl8723au: Merge Init_ODM_ComInfo_8723a() into rtl8723a_init_dm_priv()

Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 bd9bda22
...@@ -82,16 +82,15 @@ static void dm_CheckPbcGPIO(struct rtw_adapter *padapter) ...@@ -82,16 +82,15 @@ static void dm_CheckPbcGPIO(struct rtw_adapter *padapter)
/* Initialize GPIO setting registers */ /* Initialize GPIO setting registers */
/* functions */ /* functions */
static void Init_ODM_ComInfo_8723a(struct rtw_adapter *Adapter)
{
void rtl8723a_init_dm_priv(struct rtw_adapter *Adapter)
{
struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter); struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; struct dm_odm_t *pDM_Odm = &pHalData->odmpriv;
u8 cut_ver, fab_ver; u8 cut_ver, fab_ver;
/* */ memset(pdmpriv, 0, sizeof(struct dm_priv));
/* Init Value */
/* */
memset(pDM_Odm, 0, sizeof(*pDM_Odm)); memset(pDM_Odm, 0, sizeof(*pDM_Odm));
pDM_Odm->Adapter = Adapter; pDM_Odm->Adapter = Adapter;
...@@ -212,12 +211,3 @@ rtl8723a_HalDmWatchDog( ...@@ -212,12 +211,3 @@ rtl8723a_HalDmWatchDog(
/* Check Hardware Radio ON/OFF or not */ /* Check Hardware Radio ON/OFF or not */
dm_CheckPbcGPIO(Adapter); dm_CheckPbcGPIO(Adapter);
} }
void rtl8723a_init_dm_priv(struct rtw_adapter *Adapter)
{
struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
memset(pdmpriv, 0, sizeof(struct dm_priv));
Init_ODM_ComInfo_8723a(Adapter);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册