staging: r8188eu: convert ODM_ReadAndConfig_AGC_TAB_1T_8188E() to int
authorMichael Straube <straube.linux@gmail.com>
Wed, 28 Sep 2022 14:43:23 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Sep 2022 12:34:30 +0000 (14:34 +0200)
commitb933b6a2667a988e999fef92e7d4bf7a4f41eaff
tree40d76c4d3f9c9d0bdbeb10e35099149d36f0b513
parent6d09f25aa60bd8fc6865c2a385746afc7cc1860c
staging: r8188eu: convert ODM_ReadAndConfig_AGC_TAB_1T_8188E() to int

The function ODM_ReadAndConfig_AGC_TAB_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 enum HAL_STATUS is unused now and we can remove it.

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-5-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/HalHWImg8188E_BB.c
drivers/staging/r8188eu/hal/rtl8188e_phycfg.c
drivers/staging/r8188eu/include/HalHWImg8188E_BB.h
drivers/staging/r8188eu/include/odm_types.h