[PATCH] staging: rtl8188eu: replace camelcase field CustomerID

Alberto Merciai posted 1 patch 2 years, 3 months ago
drivers/staging/rtl8188eu/hal/rtl8188e_dm.c      | 2 +-
drivers/staging/rtl8188eu/hal/usb_halinit.c      | 2 +-
drivers/staging/rtl8188eu/include/rtl8188e_hal.h | 2 +-
drivers/staging/rtl8188eu/include/rtw_eeprom.h   | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
[PATCH] staging: rtl8188eu: replace camelcase field CustomerID
Posted by Alberto Merciai 2 years, 3 months ago
Replace camelcase field CustomerID to customer_id, compliant
with linux kernel coding style.

Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
---
 drivers/staging/rtl8188eu/hal/rtl8188e_dm.c      | 2 +-
 drivers/staging/rtl8188eu/hal/usb_halinit.c      | 2 +-
 drivers/staging/rtl8188eu/include/rtl8188e_hal.h | 2 +-
 drivers/staging/rtl8188eu/include/rtw_eeprom.h   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c b/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
index 1af919ff6d93..81d79b39e048 100644
--- a/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
+++ b/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
@@ -43,7 +43,7 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)
 	dm_odm->SupportICType = ODM_RTL8188E;
 	dm_odm->CutVersion = ODM_CUT_A;
 	dm_odm->bIsMPChip = hal_data->VersionID.ChipType == NORMAL_CHIP;
-	dm_odm->PatchID = hal_data->CustomerID;
+	dm_odm->PatchID = hal_data->customer_id;
 	dm_odm->bWIFITest = Adapter->registrypriv.wifi_spec;
 
 	dm_odm->AntDivType = hal_data->TRxAntDivType;
diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal/usb_halinit.c
index 16a57b31a439..0fa01549bfa7 100644
--- a/drivers/staging/rtl8188eu/hal/usb_halinit.c
+++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c
@@ -1385,7 +1385,7 @@ void rtw_hal_set_hwreg(struct adapter *Adapter, u8 variable, u8 *val)
 				usb_write32(Adapter, REG_RCR, usb_read32(Adapter, REG_RCR) | RCR_CBSSID_DATA | RCR_CBSSID_BCN);
 
 				if (check_fwstate(pmlmepriv, WIFI_STATION_STATE))
-					RetryLimit = (haldata->CustomerID == RT_CID_CCX) ? 7 : 48;
+					RetryLimit = (haldata->customer_id == RT_CID_CCX) ? 7 : 48;
 				else /*  Ad-hoc Mode */
 					RetryLimit = 0x7;
 			} else if (type == 1) {
diff --git a/drivers/staging/rtl8188eu/include/rtl8188e_hal.h b/drivers/staging/rtl8188eu/include/rtl8188e_hal.h
index eb4655ecf6e0..231800f60583 100644
--- a/drivers/staging/rtl8188eu/include/rtl8188e_hal.h
+++ b/drivers/staging/rtl8188eu/include/rtl8188e_hal.h
@@ -181,7 +181,7 @@ struct txpowerinfo24g {
 
 struct hal_data_8188e {
 	struct HAL_VERSION	VersionID;
-	u16	CustomerID;
+	u16	customer_id;
 	u16	FirmwareVersion;
 	u16	FirmwareVersionRev;
 	u16	FirmwareSubVersion;
diff --git a/drivers/staging/rtl8188eu/include/rtw_eeprom.h b/drivers/staging/rtl8188eu/include/rtw_eeprom.h
index 10525493129b..57b675baf5bc 100644
--- a/drivers/staging/rtl8188eu/include/rtw_eeprom.h
+++ b/drivers/staging/rtl8188eu/include/rtw_eeprom.h
@@ -49,7 +49,7 @@
 /*  EEPROM size consideration. So, we have to perform proper translation
  *  between them.
  */
-/*  Besides, CustomerID of registry has precedence of that of EEPROM. */
+/*  Besides, customer_id of registry has precedence of that of EEPROM. */
 /*  defined below. 060703, by rcnjko. */
 enum RT_CUSTOMER_ID {
 	RT_CID_DEFAULT = 0,
-- 
2.25.1