Skip to content

Commit 11c6c25

Browse files
DancinParrotgregkh
authored andcommitted
staging: rtl8723bs: rename CamelCase function Set_MSR to set_msr
Adhere to Linux kernel coding style. Reported by checkpatch: CHECK: Avoid CamelCase: <Set_MSR> Signed-off-by: Tan Kai Zhe <kaizhetan@yahoo.com> Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com> Link: https://patch.msgid.link/20260207061313.20103-1-kaizhetan@yahoo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bad0520 commit 11c6c25

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

drivers/staging/rtl8723bs/core/rtw_ap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ void start_bss_network(struct adapter *padapter)
687687
}
688688

689689
/* set MSR to AP_Mode */
690-
Set_MSR(padapter, _HW_STATE_AP_);
690+
set_msr(padapter, _HW_STATE_AP_);
691691

692692
/* Set BSSID REG */
693693
rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pnetwork->mac_address);

drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3853,7 +3853,7 @@ void site_survey(struct adapter *padapter)
38533853
/* rtw_hal_set_hwreg(padapter, HW_VAR_TXPAUSE, (u8 *)(&val8)); */
38543854

38553855
/* config MSR */
3856-
Set_MSR(padapter, (pmlmeinfo->state & 0x3));
3856+
set_msr(padapter, (pmlmeinfo->state & 0x3));
38573857

38583858
initialgain = 0xff; /* restore RX GAIN */
38593859
rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
@@ -4070,7 +4070,7 @@ void start_create_ibss(struct adapter *padapter)
40704070

40714071
/* set msr to WIFI_FW_ADHOC_STATE */
40724072
pmlmeinfo->state = WIFI_FW_ADHOC_STATE;
4073-
Set_MSR(padapter, (pmlmeinfo->state & 0x3));
4073+
set_msr(padapter, (pmlmeinfo->state & 0x3));
40744074

40754075
/* issue beacon */
40764076
if (send_beacon(padapter) == _FAIL) {
@@ -4109,7 +4109,7 @@ void start_clnt_join(struct adapter *padapter)
41094109
caps = rtw_get_capability((struct wlan_bssid_ex *)pnetwork);
41104110
update_capinfo(padapter, caps);
41114111
if (caps&WLAN_CAPABILITY_ESS) {
4112-
Set_MSR(padapter, WIFI_FW_STATION_STATE);
4112+
set_msr(padapter, WIFI_FW_STATION_STATE);
41134113

41144114
val8 = (pmlmeinfo->auth_algo == dot11AuthAlgrthm_8021X) ? 0xcc : 0xcf;
41154115

@@ -4136,7 +4136,7 @@ void start_clnt_join(struct adapter *padapter)
41364136

41374137
pmlmeinfo->state = WIFI_FW_AUTH_NULL | WIFI_FW_STATION_STATE;
41384138
} else if (caps&WLAN_CAPABILITY_IBSS) { /* adhoc client */
4139-
Set_MSR(padapter, WIFI_FW_ADHOC_STATE);
4139+
set_msr(padapter, WIFI_FW_ADHOC_STATE);
41404140

41414141
val8 = 0xcf;
41424142
rtw_hal_set_hwreg(padapter, HW_VAR_SEC_CFG, (u8 *)(&val8));
@@ -4742,7 +4742,7 @@ static void rtw_mlmeext_disconnect(struct adapter *padapter)
47424742
rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, null_addr);
47434743

47444744
/* set MSR to no link state -> infra. mode */
4745-
Set_MSR(padapter, _HW_STATE_STATION_);
4745+
set_msr(padapter, _HW_STATE_STATION_);
47464746

47474747
pmlmeinfo->state = WIFI_FW_NULL_STATE;
47484748

@@ -5185,7 +5185,7 @@ u8 setopmode_hdl(struct adapter *padapter, u8 *pbuf)
51855185
}
51865186

51875187
rtw_hal_set_hwreg(padapter, HW_VAR_SET_OPMODE, (u8 *)(&type));
5188-
/* Set_MSR(padapter, type); */
5188+
/* set_msr(padapter, type); */
51895189

51905190
if (psetop->mode == Ndis802_11APMode) {
51915191
/* Do this after port switch to */
@@ -5279,8 +5279,8 @@ u8 join_cmd_hdl(struct adapter *padapter, u8 *pbuf)
52795279
timer_delete_sync(&pmlmeext->link_timer);
52805280

52815281
/* set MSR to nolink -> infra. mode */
5282-
/* Set_MSR(padapter, _HW_STATE_NOLINK_); */
5283-
Set_MSR(padapter, _HW_STATE_STATION_);
5282+
/* set_msr(padapter, _HW_STATE_NOLINK_); */
5283+
set_msr(padapter, _HW_STATE_STATION_);
52845284

52855285

52865286
rtw_hal_set_hwreg(padapter, HW_VAR_MLME_DISCONNECT, NULL);
@@ -5543,7 +5543,7 @@ u8 sitesurvey_cmd_hdl(struct adapter *padapter, u8 *pbuf)
55435543
rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
55445544

55455545
/* set MSR to no link state */
5546-
Set_MSR(padapter, _HW_STATE_NOLINK_);
5546+
set_msr(padapter, _HW_STATE_NOLINK_);
55475547

55485548
val8 = 1; /* under site survey */
55495549
rtw_hal_set_hwreg(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));

drivers/staging/rtl8723bs/core/rtw_wlan_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void Switch_DM_Func(struct adapter *padapter, u32 mode, u8 enable)
242242
rtw_hal_set_hwreg(padapter, HW_VAR_DM_FUNC_CLR, (u8 *)(&mode));
243243
}
244244

245-
void Set_MSR(struct adapter *padapter, u8 type)
245+
void set_msr(struct adapter *padapter, u8 type)
246246
{
247247
rtw_hal_set_hwreg(padapter, HW_VAR_MEDIA_STATUS, (u8 *)(&type));
248248
}

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,7 @@ static void hw_var_set_opmode(struct adapter *padapter, u8 variable, u8 *val)
19441944
rtw_write8(padapter, REG_BCN_CTRL, val8);
19451945

19461946
/* set net_type */
1947-
Set_MSR(padapter, mode);
1947+
set_msr(padapter, mode);
19481948

19491949
if ((mode == _HW_STATE_STATION_) || (mode == _HW_STATE_NOLINK_)) {
19501950
{

drivers/staging/rtl8723bs/include/rtw_mlme_ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ void Save_DM_Func_Flag(struct adapter *padapter);
441441
void Restore_DM_Func_Flag(struct adapter *padapter);
442442
void Switch_DM_Func(struct adapter *padapter, u32 mode, u8 enable);
443443

444-
void Set_MSR(struct adapter *padapter, u8 type);
444+
void set_msr(struct adapter *padapter, u8 type);
445445

446446
u8 rtw_get_oper_ch(struct adapter *adapter);
447447
void rtw_set_oper_ch(struct adapter *adapter, u8 ch);

0 commit comments

Comments
 (0)