staging: r8188eu: merge ODM_ConfigBBWithHeaderFile with its callers
authorMartin Kaiser <martin@kaiser.cx>
Mon, 10 Jan 2022 12:46:38 +0000 (13:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:18:42 +0000 (16:18 +0100)
commit67396d2dfef3fee70a113a679ccf5fc0d4d3fd71
tree17b4e1af815f5e4c56e4feb14ed977b20ab834bf
parentaf5df1e7f94cb891719b64cd2d18ffb1b17b4b42
staging: r8188eu: merge ODM_ConfigBBWithHeaderFile with its callers

ODM_ConfigBBWithHeaderFile is a "multiplexer" for ODM_ReadAndConfig_...
functions. It's called only from phy_BB8188E_Config_ParaFile.

We can remove ODM_ConfigBBWithHeaderFile and call the
ODM_ReadAndConfig_... functions directly.

ODM_ReadAndConfig_PHY_REG_PG_8188E does not return an error status,
there's no need for a check.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220110124638.6909-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm_HWConfig.c
drivers/staging/r8188eu/hal/rtl8188e_phycfg.c
drivers/staging/r8188eu/include/odm_HWConfig.h