From nobody Fri Dec 19 19:25:24 2025 Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E70623F429 for ; Mon, 26 May 2025 21:54:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748296468; cv=none; b=SVsqeEkVFCAsjRQz96cwykDU2P+KghYEMh/5nOv7hCdMmgSv8ynU0oXOePuziCM1yRl0ZVjw0zO3V6NgFE3J3MrxaFSYJy7hDuwiKabdmY8qHDkvIzkt5Q753pJXlSGp9YxhNA/oaU6LfveBUMnQyuAUvYoIXtxHu+KcWBFMB/Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748296468; c=relaxed/simple; bh=oDp1QMx3PGZuS68a+69DVS8QpwcEdHxsSnJk3Z/1h/M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=azf6buu+eZDO0YBbjivYtEyndcSfQGC9uYcKsqhLzkLUq0cu8dBUAuHppfg+5H0whnUyB1vUM3Zr3twH8vKOu+GY/5rWn4XUjKt+7qXYwS4B9utA7kIfkijBkh2Egi8RnOrcIl4/gxYQip01rr8VjTGuZ5O0g3QfOuVrmQvwCVA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=l5QVq3DC; arc=none smtp.client-ip=209.85.222.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l5QVq3DC" Received: by mail-ua1-f42.google.com with SMTP id a1e0cc1a2514c-87e075fe92fso267866241.3 for ; Mon, 26 May 2025 14:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748296466; x=1748901266; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3sttzwwEBlrOS+cVlPp3FlNUB/dv0rPr1Mn8CQuusnM=; b=l5QVq3DCW/dQ6SXQw7Sul1ddJDMf6vG7yaxjjwRPKTP0G8HC7QHr7xdYf8LNoi7eAy +6ykI/BcuBQQmgg1suHx1J1itjaS2A830fjNSwpulVHpEkU1jltu1+fX01Mo1Wx7uVUq SeDGKY2B4ikK5HdP9QU4aIreXww8jsARhJJcRrvifoabvjAQdD9yv3m3CGEiO3VFcx/m RUcI2T78DWDIX38COrKZaLySFvlZfCca69zJdqitsM/Jdq3/QrYhu69F+spcp5DJo0qo cK46r1G6ClXMY6+9KM9YxoAhUgb7tzmhsQDartAMdGx331TDOwTExnAYGWtzCWA3rWjj yxOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748296466; x=1748901266; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3sttzwwEBlrOS+cVlPp3FlNUB/dv0rPr1Mn8CQuusnM=; b=hafOWYWT4SAAET0jpaiy7LFOwadQM21gFGnIWSkVUSVjCTD9e7B0dYW0amYu20WaXx N6CfxTIjzvfZJFQ4ah1i+NYaXjElRcG+zdg9bJX/1xtVIyApsUis3DUS9VmWN+LVO0X9 pKHPtKsF7wq0Tvnju7fCxEWT5EF1+N+qmWR0EBW5lEDg5CUny08klmExyTU1tUtARVEX j3HepJAU2m/b+fv2Un1w5iOIkqIgDLslggp8lkAMSY5pGjtz72LqYaK/Rg9yb6LOSwKM dyQ6PqHm2To0144KxKaE0GSZoT1+p9bVFbD6PTA8T84HTUhg+e4CW5wD09H6lCPCIH4d lGHA== X-Forwarded-Encrypted: i=1; AJvYcCUySYUP/iV1yNjKkX03UvWzDWH2TX8T5C+lsHUp0k9uc8dYe8hEzjEMdbGnF6/JDbmSjix/6Hz4+81yfRE=@vger.kernel.org X-Gm-Message-State: AOJu0YwCud/RCgwoaid78NMcPBT/m3+gx7Co+geJzxTgiERheutbDvpl ZEaWoTFwkD+Vlt10j5Lbt5zwxQE8jQ4xGe+fCgUVG1vuAJOPAtnUHj7wnS+GOA== X-Gm-Gg: ASbGnctsIwm/u3phf0tvyV1WtZuFq3w9tNleXhaq22CzY1y11CtDtcndSR7y42MNBgu 4rZtb/URbyk4fNS+v43d9G2xNHopliUDlyDWNuNEIUPQWmQEoEdfV3DJOLMzr3i4bO/+6N5tTtQ iqjQmAHieOldVgexau3mPDmWcvqDa64jJYtAN85OLBBsuyLaRACq+B5OUZOyXxjGissCM7pjwL0 Tgkcub1hOL05mA7OUw27aITnOg0dzkCwqtDsTWO8F86gIRS5iVj4HMA8jofUOW/LT3cPxd2Mkgj AQShpyIHJAupn9IjuCahxzulOkSgVzBqHVKJt6EAVLPPIOq8e1zCP/0AeVlTPvMu47kn5xEQXUO T5w== X-Google-Smtp-Source: AGHT+IHkeA3NCbRJbQVu8vq4MX/aFrWBWA0ps66DhIY8eWLWqzbUgn80oQ6QRQ5fBGOMP2dhnspPlw== X-Received: by 2002:a05:6102:5126:b0:4e4:5e11:6848 with SMTP id ada2fe7eead31-4e45e116d65mr2584654137.23.1748296465749; Mon, 26 May 2025 14:54:25 -0700 (PDT) Received: from maquina-virtual-para-linux.. ([191.156.36.62]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-4e45beecf4bsm1562462137.2.2025.05.26.14.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 May 2025 14:54:25 -0700 (PDT) From: Donny Turizo To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Donny Turizo Subject: [PATCH v7] staging: rtl8723bs: rename _Read_EEPROM and other functions to snake_case Date: Mon, 26 May 2025 21:54:18 +0000 Message-ID: <20250526215419.15057-1-donnyturizo13@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Donny Turizo --- 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. --- 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(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl= 8723bs/core/rtw_cmd.c index 49bcefb5e8d2..a73c83f804e4 100644 --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c @@ -11,76 +11,76 @@ static struct _cmd_callback rtw_cmd_callback[] =3D { {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*/ }; =20 static struct cmd_hdl wlancmds[] =3D { diff --git a/drivers/staging/rtl8723bs/include/rtw_cmd.h b/drivers/staging/= rtl8723bs/include/rtw_cmd.h index cb44119ce9a9..e4e7e350d0fc 100644 --- a/drivers/staging/rtl8723bs/include/rtw_cmd.h +++ b/drivers/staging/rtl8723bs/include/rtw_cmd.h @@ -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), diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/sta= ging/rtl8723bs/include/rtw_mlme_ext.h index 2080408743ef..63373d665d4f 100644 --- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h @@ -684,7 +684,7 @@ enum { GEN_EVT_CODE(_Read_MACREG) =3D 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), --=20 2.43.0