staging: rtl8188eu: rename parameter of odm_QueryRxPwrPercentage()
authorMichael Straube <straube.linux@gmail.com>
Sun, 30 Sep 2018 19:52:58 +0000 (21:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2018 22:20:40 +0000 (15:20 -0700)
Rename parameter of odm_QueryRxPwrPercentage() to avoid CamelCase.
AntPower -> antpower

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/odm_hwconfig.c

index ada59a671da418236856a065ce1b8d6fb975d95b..dca39df3d8ba504fdf1b6e5cf2b685be2b8e2f35 100644 (file)
 #define READ_AND_CONFIG_MP(ic, txt) (ODM_ReadAndConfig##txt##ic(dm_odm))
 #define READ_AND_CONFIG_TC(ic, txt) (ODM_ReadAndConfig_TC##txt##ic(dm_odm))
 
-static u8 odm_QueryRxPwrPercentage(s8 AntPower)
+static u8 odm_QueryRxPwrPercentage(s8 antpower)
 {
-       if ((AntPower <= -100) || (AntPower >= 20))
+       if ((antpower <= -100) || (antpower >= 20))
                return 0;
-       else if (AntPower >= 0)
+       else if (antpower >= 0)
                return 100;
        else
-               return 100 + AntPower;
+               return 100 + antpower;
 }
 
 /*  2012/01/12 MH MOve some signal strength smooth method to MP HAL layer. */