aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Straube <[email protected]>2022-09-11 18:19:48 +0200
committerGreg Kroah-Hartman <[email protected]>2022-09-24 13:07:54 +0200
commitf7438373fa0283d5b086df238e19f3d3ded9b8e5 (patch)
tree6a1a776c1761e44fa4945e01ce3e016e0cbd94e1
parent6c268b6e29257295257ff71b29fe65aab3e5c736 (diff)
staging: r8188eu: clean up camel case in odm_query_rxpwrpercentage()
Rename the variable 'AntPower' in odm_query_rxpwrpercentage() to avoid camel case. AntPower -> antpower Tested-by: Philipp Hortmann <[email protected]> # Edimax N150 Signed-off-by: Michael Straube <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/r8188eu/hal/odm_HWConfig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/r8188eu/hal/odm_HWConfig.c b/drivers/staging/r8188eu/hal/odm_HWConfig.c
index 8b292644b38c..a870973395f6 100644
--- a/drivers/staging/r8188eu/hal/odm_HWConfig.c
+++ b/drivers/staging/r8188eu/hal/odm_HWConfig.c
@@ -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)