diff options
author | 2022-09-28 16:43:21 +0200 | |
---|---|---|
committer | 2022-09-30 14:34:30 +0200 | |
commit | 9090b84a7b43148c33139abe0da1623ac1345d38 (patch) | |
tree | 722cc2efd10101fc42103b8eb00904455ce61e81 /drivers/staging/r8188eu/include | |
parent | staging: r8188eu: convert ODM_ReadAndConfig_MAC_REG_8188E() to int (diff) | |
download | linux-dev-9090b84a7b43148c33139abe0da1623ac1345d38.tar.xz linux-dev-9090b84a7b43148c33139abe0da1623ac1345d38.zip |
staging: r8188eu: convert ODM_ReadAndConfig_RadioA_1T_8188E() to int
The function ODM_ReadAndConfig_RadioA_1T_8188E() has return type
'enum HAL_STATUS'. Convert the return type to int and use common
kernel error logic. Return 0 on success and negative values on
failure. The goal is to get rid of enum HAL_STATUS in the end.
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20220928144323.13164-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include')
-rw-r--r-- | drivers/staging/r8188eu/include/HalHWImg8188E_RF.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/include/HalHWImg8188E_RF.h b/drivers/staging/r8188eu/include/HalHWImg8188E_RF.h index 0c67c3df20b9..880feadb4340 100644 --- a/drivers/staging/r8188eu/include/HalHWImg8188E_RF.h +++ b/drivers/staging/r8188eu/include/HalHWImg8188E_RF.h @@ -8,6 +8,6 @@ * RadioA_1T.TXT ******************************************************************************/ -enum HAL_STATUS ODM_ReadAndConfig_RadioA_1T_8188E(struct odm_dm_struct *odm); +int ODM_ReadAndConfig_RadioA_1T_8188E(struct odm_dm_struct *odm); #endif /* end of HWIMG_SUPPORT */ |