[PATCH v3] staging: r8188eu: rename variable within rtl8188e_Add_RateATid

From: Phillip Potter
Date: Wed Aug 18 2021 - 14:08:39 EST


Rename 'shortGIrate' within the rtl8188e_Add_RateATid function to
'short_gi_rate', to comply with kernel camel case style rules.

Signed-off-by: Phillip Potter <phil@xxxxxxxxxxxxxxxx>
---

V1: Was part of another patch which was too large.
V2: Attempted to correct operator spacing issues which were fixed by
another patch from Michael Straube.
V3: Just corrects camel case issue for 'shortGIrate', and renames
subject to be more specific.

---
drivers/staging/r8188eu/hal/rtl8188e_cmd.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/r8188eu/hal/rtl8188e_cmd.c b/drivers/staging/r8188eu/hal/rtl8188e_cmd.c
index cc06ee07974f..3e1a45030bc8 100644
--- a/drivers/staging/r8188eu/hal/rtl8188e_cmd.c
+++ b/drivers/staging/r8188eu/hal/rtl8188e_cmd.c
@@ -155,7 +155,7 @@ void rtl8188e_Add_RateATid(struct adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi
{
struct hal_data_8188e *haldata = GET_HAL_DATA(pAdapter);

- u8 macid, raid, shortGIrate = false;
+ u8 macid, raid, short_gi_rate = false;

macid = arg & 0x1f;

@@ -167,13 +167,13 @@ void rtl8188e_Add_RateATid(struct adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi

bitmap |= ((raid << 28) & 0xf0000000);

- shortGIrate = (arg & BIT(5)) ? true : false;
+ short_gi_rate = (arg & BIT(5)) ? true : false;

raid = (bitmap >> 28) & 0x0f;

bitmap &= 0x0fffffff;

- ODM_RA_UpdateRateInfo_8188E(&haldata->odmpriv, macid, raid, bitmap, shortGIrate);
+ ODM_RA_UpdateRateInfo_8188E(&haldata->odmpriv, macid, raid, bitmap, short_gi_rate);
}

void rtl8188e_set_FwPwrMode_cmd(struct adapter *adapt, u8 Mode)
--
2.31.1