]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: convert ODM_ReadAndConfig_RadioA_1T_8188E() to int
authorMichael Straube <straube.linux@gmail.com>
Wed, 28 Sep 2022 14:43:21 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Sep 2022 12:34:30 +0000 (14:34 +0200)
commit63a96869947fb3fbbdf5e27b9e06fa723b03b7b6
tree722cc2efd10101fc42103b8eb00904455ce61e81
parentada5f7bd3a4773b166cd28138906acc9b121da31
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>
drivers/staging/r8188eu/hal/HalHWImg8188E_RF.c
drivers/staging/r8188eu/hal/rtl8188e_rf6052.c
drivers/staging/r8188eu/include/HalHWImg8188E_RF.h