staging: rtl8723bs: rename _Read_EEPROM and other functions to snake_case
PATCH v8 1/1 staging: rtl8723bs: rename _Read_EEPROM and other functions to snake_case
Renamed _Read_EEPROM and several other functions in rtw_cmd.c to follow the kernel coding style (snake_case). This fixes checkpatch warnings related to naming conventions.
---
v2: Initial patch rejected by the robot due to naming issues.
v3: Rebased the patch onto GregKH's staging branch for better integration.
v4: Changed the commit author to my name and renamed all remaining functions
to snake_case following kernel coding style.
v5: Renamed command _set_h2c_Lbk to _set_h2c_lbk to fix CamelCase issue.
v6: Actually fixed the misspelled name that was incorrectly stated as
fixed in v5.
v7: This is v7 of the patch, now rebased onto gregkh's staging-testing branch to avoid merge conflicts and stay in sync with the latest changes in the staging tree.
v8:
Actually rebased on top of the latest gregkh/staging-testing. In v7 I mentioned a rebase, but I had forgotten to run git fetch gregkh, so the patch was not properly rebased. No code changes from v7. Only the base of the patch is updated.
--- drivers/staging/rtl8723bs/core/rtw_cmd.c | 140 +++++++++--------- drivers/staging/rtl8723bs/include/rtw_cmd.h | 2 +- .../staging/rtl8723bs/include/rtw_mlme_ext.h | 2 +- 3 files changed, 72 insertions(+), 72 deletions(-)
drivers/staging/rtl8723bs/core/rtw_cmd.c +70 -70
@@ -11,76 +11,76 @@static struct _cmd_callback rtw_cmd_callback[] = { {GEN_CMD_CODE (_read_macreg),NULL },/*0*/ {GEN_CMD_CODE (_write_macreg),NULL }, - {GEN_CMD_CODE (_Read_BBREG), &rtw_getbbrfreg_cmdrsp_callback}, - {GEN_CMD_CODE (_Write_BBREG),NULL }, - {GEN_CMD_CODE (_Read_RFREG), &rtw_getbbrfreg_cmdrsp_callback}, - {GEN_CMD_CODE (_Write_RFREG),NULL },/*5*/ - {GEN_CMD_CODE (_Read_EEPROM),NULL }, - {GEN_CMD_CODE (_Write_EEPROM),NULL }, - {GEN_CMD_CODE (_Read_EFUSE),NULL }, - {GEN_CMD_CODE (_Write_EFUSE),NULL }, - - {GEN_CMD_CODE (_Read_CAM),NULL },/*10*/ - {GEN_CMD_CODE (_Write_CAM),NULL }, - {GEN_CMD_CODE (_setBCNITV),NULL }, - {GEN_CMD_CODE (_setMBIDCFG),NULL }, - {GEN_CMD_CODE (_JoinBss), &rtw_joinbss_cmd_callback},/*14*/ - {GEN_CMD_CODE (_DisConnect), &rtw_disassoc_cmd_callback},/*15*/ - {GEN_CMD_CODE (_CreateBss), &rtw_createbss_cmd_callback}, - {GEN_CMD_CODE (_SetOpMode),NULL }, - {GEN_CMD_CODE (_SiteSurvey), &rtw_survey_cmd_callback},/*18*/ - {GEN_CMD_CODE (_SetAuth),NULL }, - - {GEN_CMD_CODE (_SetKey),NULL },/*20*/ - {GEN_CMD_CODE (_SetStaKey), &rtw_setstaKey_cmdrsp_callback}, - {GEN_CMD_CODE (_SetAssocSta), &rtw_setassocsta_cmdrsp_callback}, - {GEN_CMD_CODE (_DelAssocSta),NULL }, - {GEN_CMD_CODE (_SetStaPwrState),NULL }, - {GEN_CMD_CODE (_SetBasicRate),NULL },/*25*/ - {GEN_CMD_CODE (_GetBasicRate),NULL }, - {GEN_CMD_CODE (_SetDataRate),NULL }, - {GEN_CMD_CODE (_GetDataRate),NULL }, - {GEN_CMD_CODE (_SetPhyInfo),NULL }, - - {GEN_CMD_CODE (_GetPhyInfo),NULL },/*30*/ - {GEN_CMD_CODE (_SetPhy),NULL }, - {GEN_CMD_CODE (_GetPhy),NULL }, - {GEN_CMD_CODE (_readRssi),NULL }, - {GEN_CMD_CODE (_readGain),NULL }, - {GEN_CMD_CODE (_SetAtim),NULL },/*35*/ - {GEN_CMD_CODE (_SetPwrMode),NULL }, - {GEN_CMD_CODE (_JoinbssRpt),NULL }, - {GEN_CMD_CODE (_SetRaTable),NULL }, - {GEN_CMD_CODE (_GetRaTable),NULL }, - - {GEN_CMD_CODE (_GetCCXReport),NULL },/*40*/ - {GEN_CMD_CODE (_GetDTMReport),NULL }, - {GEN_CMD_CODE (_GetTXRateStatistics),NULL }, - {GEN_CMD_CODE (_SetUsbSuspend),NULL }, - {GEN_CMD_CODE (_SetH2cLbk),NULL }, - {GEN_CMD_CODE (_AddBAReq),NULL },/*45*/ - {GEN_CMD_CODE (_SetChannel),NULL },/*46*/ - {GEN_CMD_CODE (_SetTxPower),NULL }, - {GEN_CMD_CODE (_SwitchAntenna),NULL }, - {GEN_CMD_CODE (_SetCrystalCap),NULL }, - {GEN_CMD_CODE (_SetSingleCarrierTx),NULL },/*50*/ - - {GEN_CMD_CODE (_SetSingleToneTx),NULL },/*51*/ - {GEN_CMD_CODE (_SetCarrierSuppressionTx),NULL }, - {GEN_CMD_CODE (_SetContinuousTx),NULL }, - {GEN_CMD_CODE (_SwitchBandwidth),NULL },/*54*/ - {GEN_CMD_CODE (_TX_Beacon),NULL },/*55*/ - - {GEN_CMD_CODE (_Set_MLME_EVT),NULL },/*56*/ - {GEN_CMD_CODE (_Set_Drv_Extra),NULL },/*57*/ - {GEN_CMD_CODE (_Set_H2C_MSG),NULL },/*58*/ - {GEN_CMD_CODE (_SetChannelPlan),NULL },/*59*/ - - {GEN_CMD_CODE (_SetChannelSwitch),NULL },/*60*/ - {GEN_CMD_CODE (_TDLS),NULL },/*61*/ - {GEN_CMD_CODE (_ChkBMCSleepq),NULL },/*62*/ - - {GEN_CMD_CODE (_RunInThreadCMD),NULL },/*63*/ + {GEN_CMD_CODE (_read_bbreg), &rtw_getbbrfreg_cmdrsp_callback}, + {GEN_CMD_CODE (_write_bbreg),NULL }, + {GEN_CMD_CODE (_read_rfreg), &rtw_getbbrfreg_cmdrsp_callback}, + {GEN_CMD_CODE (_write_rfreg),NULL },/*5*/ + {GEN_CMD_CODE (_read_eeprom),NULL }, + {GEN_CMD_CODE (_write_eeprom),NULL }, + {GEN_CMD_CODE (_read_efuse),NULL }, + {GEN_CMD_CODE (_write_efuse),NULL }, + + {GEN_CMD_CODE (_read_cam),NULL },/*10*/ + {GEN_CMD_CODE (_write_cam),NULL }, + {GEN_CMD_CODE (_set_bcnitv),NULL }, + {GEN_CMD_CODE (_set_mbidcfg),NULL }, + {GEN_CMD_CODE (_join_bss), &rtw_joinbss_cmd_callback},/*14*/ + {GEN_CMD_CODE (_disconnect), &rtw_disassoc_cmd_callback},/*15*/ + {GEN_CMD_CODE (_create_bss), &rtw_createbss_cmd_callback}, + {GEN_CMD_CODE (_set_op_mode),NULL }, + {GEN_CMD_CODE (_site_survey), &rtw_survey_cmd_callback},/*18*/ + {GEN_CMD_CODE (_set_auth),NULL }, + + {GEN_CMD_CODE (_set_key),NULL },/*20*/ + {GEN_CMD_CODE (_set_sta_key), &rtw_setstaKey_cmdrsp_callback}, + {GEN_CMD_CODE (_set_assoc_sta), &rtw_setassocsta_cmdrsp_callback}, + {GEN_CMD_CODE (_del_assoc_sta),NULL }, + {GEN_CMD_CODE (_set_sta_pwr_state),NULL }, + {GEN_CMD_CODE (_set_basic_rate),NULL },/*25*/ + {GEN_CMD_CODE (_get_basic_rate),NULL }, + {GEN_CMD_CODE (_set_data_rate),NULL }, + {GEN_CMD_CODE (_get_data_rate),NULL }, + {GEN_CMD_CODE (_set_phy_info),NULL }, + + {GEN_CMD_CODE (_get_phy_info),NULL },/*30*/ + {GEN_CMD_CODE (_set_phy),NULL }, + {GEN_CMD_CODE (_get_phy),NULL }, + {GEN_CMD_CODE (_read_rssi),NULL }, + {GEN_CMD_CODE (_read_gain),NULL }, + {GEN_CMD_CODE (_set_atim),NULL },/*35*/ + {GEN_CMD_CODE (_set_pwr_mode),NULL }, + {GEN_CMD_CODE (_joinbss_rpt),NULL }, + {GEN_CMD_CODE (_set_ra_table),NULL }, + {GEN_CMD_CODE (_get_ra_table),NULL }, + + {GEN_CMD_CODE (_get_ccx_report),NULL },/*40*/ + {GEN_CMD_CODE (_get_dtm_report),NULL }, + {GEN_CMD_CODE (_get_tx_rate_statistics),NULL }, + {GEN_CMD_CODE (_set_usb_suspend),NULL }, + {GEN_CMD_CODE (_set_h2c_lbk),NULL }, + {GEN_CMD_CODE (_add_ba_req),NULL },/*45*/ + {GEN_CMD_CODE (_set_channel),NULL },/*46*/ + {GEN_CMD_CODE (_set_tx_power),NULL }, + {GEN_CMD_CODE (_switch_antenna),NULL }, + {GEN_CMD_CODE (_set_crystal_cap),NULL }, + {GEN_CMD_CODE (_set_single_carrier_tx),NULL },/*50*/ + + {GEN_CMD_CODE (_set_single_tone_tx),NULL },/*51*/ + {GEN_CMD_CODE (_set_carrier_suppression_tx),NULL }, + {GEN_CMD_CODE (_set_continuous_tx),NULL }, + {GEN_CMD_CODE (_switch_bandwidth),NULL },/*54*/ + {GEN_CMD_CODE (_tx_beacon),NULL },/*55*/ + + {GEN_CMD_CODE (_set_mlme_evt),NULL },/*56*/ + {GEN_CMD_CODE (_set_drv_extra),NULL },/*57*/ + {GEN_CMD_CODE (_set_h2c_msg),NULL },/*58*/ + {GEN_CMD_CODE (_set_channel_plan),NULL },/*59*/ + + {GEN_CMD_CODE (_set_channel_switch),NULL },/*60*/ + {GEN_CMD_CODE (_tdls),NULL },/*61*/ + {GEN_CMD_CODE (_chk_bmc_sleepq),NULL },/*62*/ + + {GEN_CMD_CODE (_run_in_thread_cmd),NULL },/*63*/ };static struct cmd_hdl wlancmds[] = {
drivers/staging/rtl8723bs/include/rtw_cmd.h +1 -1
@@ -636,7 +636,7 @@ enum {GEN_CMD_CODE (_Write_BBREG),GEN_CMD_CODE (_Read_RFREG),GEN_CMD_CODE (_Write_RFREG),/*5*/ -GEN_CMD_CODE (_Read_EEPROM), +GEN_CMD_CODE (_read_eeprom),GEN_CMD_CODE (_Write_EEPROM),GEN_CMD_CODE (_Read_EFUSE), GEN_CMD_CODE(_Write_EFUSE),
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +1 -1
@@ -684,7 +684,7 @@ enum {GEN_EVT_CODE (_Read_MACREG) =0 ,/*0*/ GEN_EVT_CODE (_Read_BBREG),GEN_EVT_CODE (_Read_RFREG), -GEN_EVT_CODE (_Read_EEPROM), +GEN_EVT_CODE (_read_eeprom),GEN_EVT_CODE (_Read_EFUSE),GEN_EVT_CODE (_Read_CAM),/*5*/ GEN_EVT_CODE(_Get_BasicRate),
Signature · 1 line
2.43.0
Quoted 4 lines · Donny Turizo
Renamed
_Read_EEPROMand several other functions inrtw_cmd.cto follow the kernel coding style (snake_case). This fixes checkpatch warnings related to naming conventions.
Quoted 8 lines
Signed-off-by Donny Turizo <[email protected]>---
v8:
Actually rebased on top of the latest gregkh/staging-testing. In v7 I mentioned a rebase, but I had forgotten to rungit fetch gregkh, so the patch was not properly rebased. No code changes from v7. Only the base of the patch is updated.
I still cannot apply the patch. Are you sure you rebased correctly? You mentioned that the patch didn't change, so I think no :(
I couldn't apply it to verify the build, but I seriously doubt that this patch doesn't break the build. Are you sure you built the driver? Make sure you have CONFIG_RTL8723BS=y in your .config file. Also double check that there is a drivers/staging/rtl8723bs/core/rtw_cmd.o object file after the build.
Best regards,
Nam
Quoted 14 lines · Nam Cao
Quoted 4 lines · Donny Turizo
Renamed
_Read_EEPROMand several other functions inrtw_cmd.cto follow the kernel coding style (snake_case). This fixes checkpatch warnings related to naming conventions.Quoted 8 lines
Signed-off-by Donny Turizo <[email protected]>---
v8:
Actually rebased on top of the latest gregkh/staging-testing. In v7 I mentioned a rebase, but I had forgotten to rungit fetch gregkh, so the patch was not properly rebased. No code changes from v7. Only the base of the patch is updated.
Quoted 2 lines
I still cannot apply the patch. Are you sure you rebased correctly? You mentioned that the patch didn't change, so I think no :(
I think I know what's wrong. This patch is created on top of another patch of yours:
https://lore.kernel.org/linux-staging/[email protected]/
Please mention any dependency in your patch. But I suggest waiting for the dependency patch to be applied first, before you resend this one.
Quoted 5 lines
I couldn't apply it to verify the build, but I seriously doubt that this patch doesn't break the build. Are you sure you built the driver? Make sure you have
CONFIG_RTL8723BS=yin your .config file. Also double check that there is adrivers/staging/rtl8723bs/core/rtw_cmd.oobject file after the build.
I can verify the build now, and yes it breaks the build :(
Best regards,
Nam
You invested a lot of time into reviewing this patch...
Quoted 1 line · Nam Cao
Please mention any dependency in your patch.
Yep.
Quoted 2 lines
But I suggest waiting for the
dependency patch to be applied first, before you resend this one.
We're not going to apply that first patch.
regards,
dan carpenter