staging: r8188eu: clean up camel case in odm_query_rxpwrpercentage()
authorMichael Straube <straube.linux@gmail.com>
Sun, 11 Sep 2022 16:19:48 +0000 (18:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2022 11:07:54 +0000 (13:07 +0200)
Rename the variable 'AntPower' in odm_query_rxpwrpercentage() to avoid
camel case.

AntPower -> antpower

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220911161949.11293-6-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm_HWConfig.c

index 8b292644b38ce80c7810e3184728dd9b42d56d23..a870973395f61c98a3da95a422db46dd93824908 100644 (file)
@@ -3,14 +3,14 @@
 
 #include "../include/drv_types.h"
 
-static u8 odm_query_rxpwrpercentage(s8 AntPower)
+static u8 odm_query_rxpwrpercentage(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;
 }
 
 static s32 odm_signal_scale_mapping(struct odm_dm_struct *dm_odm, s32 currsig)