mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 10/11] staging: rtl8723bs: Remove unused function rtw_ch2freq
Date: Tue, 10 Sep 2024 07:57:56 +0200	[thread overview]
Message-ID: <53a8ee320803ae3efe22b648f2a4555482efaf46.1725826273.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1725826273.git.philipp.g.hortmann@gmail.com>

Remove unused function rtw_ch2freq with array ch_freq_map and comments.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_cmd.c   |  3 ---
 drivers/staging/rtl8723bs/core/rtw_rf.c    | 25 ----------------------
 drivers/staging/rtl8723bs/include/rtw_rf.h |  2 --
 3 files changed, 30 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index 6c49bfa00578..84ce7307d8f3 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -1883,9 +1883,6 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)
 		/*  copy pdev_network information to	pmlmepriv->cur_network */
 		memcpy(&tgt_network->network, pnetwork, (get_wlan_bssid_ex_sz(pnetwork)));
 
-		/*  reset ds_config */
-		/* tgt_network->network.configuration.ds_config = (u32)rtw_ch2freq(pnetwork->configuration.ds_config); */
-
 		_clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
 
 		spin_unlock_bh(&pmlmepriv->scanned_queue.lock);
diff --git a/drivers/staging/rtl8723bs/core/rtw_rf.c b/drivers/staging/rtl8723bs/core/rtw_rf.c
index 4f120c894998..2aca45de298e 100644
--- a/drivers/staging/rtl8723bs/core/rtw_rf.c
+++ b/drivers/staging/rtl8723bs/core/rtw_rf.c
@@ -7,28 +7,3 @@
 
 #include <drv_types.h>
 #include <linux/kernel.h>
-
-static const u32 ch_freq_map[] = {
-	2412,
-	2417,
-	2422,
-	2427,
-	2432,
-	2437,
-	2442,
-	2447,
-	2452,
-	2457,
-	2462,
-	2467,
-	2472,
-	2484
-};
-
-u32 rtw_ch2freq(u32 channel)
-{
-	if (channel == 0 || channel > ARRAY_SIZE(ch_freq_map))
-		return 2412;
-
-	return ch_freq_map[channel - 1];
-}
diff --git a/drivers/staging/rtl8723bs/include/rtw_rf.h b/drivers/staging/rtl8723bs/include/rtw_rf.h
index 718275ee4500..9f98b3f5a2e3 100644
--- a/drivers/staging/rtl8723bs/include/rtw_rf.h
+++ b/drivers/staging/rtl8723bs/include/rtw_rf.h
@@ -97,6 +97,4 @@ enum {
 	HT_DATA_SC_20_LOWER_OF_40MHZ = 2,
 };
 
-u32 rtw_ch2freq(u32 ch);
-
 #endif /* _RTL8711_RF_H_ */
-- 
2.46.0


  parent reply	other threads:[~2024-09-10  5:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-10  5:56 [PATCH 00/11] staging: rtl8723bs: Remove unused functions starting with RTW_DISABLE_FUNC Philipp Hortmann
2024-09-10  5:56 ` [PATCH 01/11] staging: rtl8723bs: Remove unused function RTW_DISABLE_FUNC Philipp Hortmann
2024-09-10  5:56 ` [PATCH 02/11] staging: rtl8723bs: Remove unused function rxmem_to_recvframe Philipp Hortmann
2024-09-10  5:56 ` [PATCH 03/11] staging: rtl8723bs: Remove unused function rtw_hal_get_odm_var Philipp Hortmann
2024-09-10  5:57 ` [PATCH 04/11] staging: rtl8723bs: Remove unused function rf_reg_dump Philipp Hortmann
2024-09-10  5:57 ` [PATCH 05/11] staging: rtl8723bs: Remove unused function dump_4_rf_regs Philipp Hortmann
2024-09-10  5:57 ` [PATCH 06/11] staging: rtl8723bs: Remove unused function bb_reg_dump Philipp Hortmann
2024-09-10  5:57 ` [PATCH 07/11] staging: rtl8723bs: Remove unused function mac_reg_dump Philipp Hortmann
2024-09-10  5:57 ` [PATCH 08/11] staging: rtl8723bs: Remove unused function dump_4_regs Philipp Hortmann
2024-09-10  5:57 ` [PATCH 09/11] staging: rtl8723bs: Remove unused files rtw_debug.c and rtw_debug.h Philipp Hortmann
2024-09-10  5:57 ` Philipp Hortmann [this message]
2024-09-10  5:58 ` [PATCH 11/11] staging: rtl8723bs: Remove unused file rtw_rf.c Philipp Hortmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53a8ee320803ae3efe22b648f2a4555482efaf46.1725826273.git.philipp.g.hortmann@gmail.com \
    --to=philipp.g.hortmann@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®