Remove some unused constants, macros, and structs.
Capitalize a constant.
No specific patch order required.
Teddy Engel (6):
staging: rtl8192e: Remove unused constant IC_VersionCut_E
staging: rtl8192e: Remove unused struct phy_ofdm_rx_status_rxsc
staging: rtl8192e: Remove unused constant WA_IOT_TH_VAL
staging: rtl8192e: Capitalize constant RegC38_TH
staging: rtl8192e: Remove unused macro dm_tx_bb_gain_idx_to_amplify
staging: rtl8192e: Remove unnecessary pre-declaration of struct
net_device
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 8 --------
drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 1 -
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++--
drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 6 +-----
drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 1 -
5 files changed, 3 insertions(+), 17 deletions(-)
--
2.39.2
Remove unused constant.
Signed-off-by: Teddy Engel <[email protected]>
---
drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
index 84e673452be4..863af8ef9f94 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
@@ -33,8 +33,6 @@
#define RATE_ADAPTIVE_TH_LOW_40M 10
#define VERY_LOW_RSSI 15
-#define WA_IOT_TH_VAL 25
-
#define E_FOR_TX_POWER_TRACK 300
#define TX_POWER_NEAR_FIELD_THRESH_HIGH 68
#define TX_POWER_NEAR_FIELD_THRESH_LOW 62
--
2.39.2
Remove unused constant.
Signed-off-by: Teddy Engel <[email protected]>
---
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h b/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
index 2cab232bbf30..486397d7db84 100644
--- a/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
+++ b/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
@@ -89,7 +89,6 @@ enum version_8190_loopback {
};
#define IC_VersionCut_D 0x3
-#define IC_VersionCut_E 0x4
enum rf_optype {
RF_OP_By_SW_3wire = 0,
--
2.39.2
Remove unused macro.
Signed-off-by: Teddy Engel <[email protected]>
---
drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
index 3add5aa933b8..55641f17412b 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
@@ -133,8 +133,6 @@ extern struct dig_t dm_digtable;
extern const u32 dm_tx_bb_gain[TX_BB_GAIN_TABLE_LEN];
extern const u8 dm_cck_tx_bb_gain[CCK_TX_BB_GAIN_TABLE_LEN][8];
extern const u8 dm_cck_tx_bb_gain_ch14[CCK_TX_BB_GAIN_TABLE_LEN][8];
-/* Maps table index to iq amplify gain (dB, 12 to -24dB) */
-#define dm_tx_bb_gain_idx_to_amplify(idx) (-idx + 12)
/*------------------------Export global variable----------------------------*/
--
2.39.2
Remove unused struct declaration.
Signed-off-by: Teddy Engel <[email protected]>
---
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h b/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
index 486397d7db84..d87bace0a19b 100644
--- a/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
+++ b/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
@@ -136,13 +136,6 @@ struct tx_fwinfo_8190pci {
u32 PacketID:13;
};
-struct phy_ofdm_rx_status_rxsc_sgien_exintfflag {
- u8 reserved:4;
- u8 rxsc:2;
- u8 sgi_en:1;
- u8 ex_intf_flag:1;
-};
-
struct phy_sts_ofdm_819xpci {
u8 trsw_gain_X[4];
u8 pwdb_all;
--
2.39.2
According to kernel coding style, capitalize defined constant.
Signed-off-by: Teddy Engel <[email protected]>
---
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++--
drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
index 5392d2daf870..4863ced04916 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
@@ -1752,7 +1752,7 @@ static void _rtl92e_dm_check_fsync(struct net_device *dev)
if (priv->rtllib->link_state == MAC80211_LINKED) {
if (priv->undecorated_smoothed_pwdb <=
- RegC38_TH) {
+ REG_C38_TH) {
if (reg_c38_State !=
RegC38_NonFsync_Other_AP) {
rtl92e_writeb(dev,
@@ -1763,7 +1763,7 @@ static void _rtl92e_dm_check_fsync(struct net_device *dev)
RegC38_NonFsync_Other_AP;
}
} else if (priv->undecorated_smoothed_pwdb >=
- (RegC38_TH + 5)) {
+ (REG_C38_TH + 5)) {
if (reg_c38_State) {
rtl92e_writeb(dev,
rOFDM0_RxDetector3,
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
index 863af8ef9f94..3add5aa933b8 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
@@ -42,7 +42,7 @@
#define CURRENT_TX_RATE_REG 0x1e0
#define INITIAL_TX_RATE_REG 0x1e1
#define TX_RETRY_COUNT_REG 0x1ac
-#define RegC38_TH 20
+#define REG_C38_TH 20
/*--------------------------Define Parameters-------------------------------*/
--
2.39.2
Remove pre-declaration of struct.
Signed-off-by: Teddy Engel <[email protected]>
---
drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 1 -
drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_cam.h b/drivers/staging/rtl8192e/rtl8192e/rtl_cam.h
index 615b84bca9b8..3a5635494385 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_cam.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_cam.h
@@ -11,7 +11,6 @@
#define _RTL_CAM_H
#include <linux/types.h>
-struct net_device;
void rtl92e_cam_reset(struct net_device *dev);
void rtl92e_enable_hw_security_config(struct net_device *dev);
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.h b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.h
index 866e0efbc4fd..c645775b2150 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.h
@@ -13,7 +13,6 @@
#include <linux/types.h>
#include <linux/pci.h>
-struct net_device;
bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev);
#endif
--
2.39.2
On 6/13/24 17:16, Teddy Engel wrote:
> Remove some unused constants, macros, and structs.
> Capitalize a constant.
>
> No specific patch order required.
>
> Teddy Engel (6):
> staging: rtl8192e: Remove unused constant IC_VersionCut_E
> staging: rtl8192e: Remove unused struct phy_ofdm_rx_status_rxsc
> staging: rtl8192e: Remove unused constant WA_IOT_TH_VAL
> staging: rtl8192e: Capitalize constant RegC38_TH
> staging: rtl8192e: Remove unused macro dm_tx_bb_gain_idx_to_amplify
> staging: rtl8192e: Remove unnecessary pre-declaration of struct
> net_device
>
> drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 8 --------
> drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 1 -
> drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++--
> drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 6 +-----
> drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 1 -
> 5 files changed, 3 insertions(+), 17 deletions(-)
>
Hi Teddy,
please combine patch 1 and 3 (Remove unused constant ...) . You can
change more than one item in a patch. But it has to be of the same kind.
Thanks for your support.
Bye Philipp
On Thu, Jun 13, 2024 at 09:05:03PM +0200, Philipp Hortmann wrote:
> On 6/13/24 17:16, Teddy Engel wrote:
> > Remove some unused constants, macros, and structs.
> > Capitalize a constant.
> >
> > No specific patch order required.
> >
> > Teddy Engel (6):
> > staging: rtl8192e: Remove unused constant IC_VersionCut_E
> > staging: rtl8192e: Remove unused struct phy_ofdm_rx_status_rxsc
> > staging: rtl8192e: Remove unused constant WA_IOT_TH_VAL
> > staging: rtl8192e: Capitalize constant RegC38_TH
> > staging: rtl8192e: Remove unused macro dm_tx_bb_gain_idx_to_amplify
> > staging: rtl8192e: Remove unnecessary pre-declaration of struct
> > net_device
> >
> > drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 8 --------
> > drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 1 -
> > drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++--
> > drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 6 +-----
> > drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 1 -
> > 5 files changed, 3 insertions(+), 17 deletions(-)
> >
>
>
> Hi Teddy,
>
> please combine patch 1 and 3 (Remove unused constant ...) . You can change
> more than one item in a patch. But it has to be of the same kind.
>
Could you combine that with the earlier patch that deleted
IC_VersionCut_C as well? (Unless that has already been merged).
regards,
dan carpenter
On Thu, 13 Jun 2024 at 20:22, Dan Carpenter <[email protected]> wrote:
>
> On Thu, Jun 13, 2024 at 09:05:03PM +0200, Philipp Hortmann wrote:
> > On 6/13/24 17:16, Teddy Engel wrote:
> > > Remove some unused constants, macros, and structs.
> > > Capitalize a constant.
> > >
> > > No specific patch order required.
> > >
> > > Teddy Engel (6):
> > > staging: rtl8192e: Remove unused constant IC_VersionCut_E
> > > staging: rtl8192e: Remove unused struct phy_ofdm_rx_status_rxsc
> > > staging: rtl8192e: Remove unused constant WA_IOT_TH_VAL
> > > staging: rtl8192e: Capitalize constant RegC38_TH
> > > staging: rtl8192e: Remove unused macro dm_tx_bb_gain_idx_to_amplify
> > > staging: rtl8192e: Remove unnecessary pre-declaration of struct
> > > net_device
> > >
> > > drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 8 --------
> > > drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 1 -
> > > drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++--
> > > drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 6 +-----
> > > drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 1 -
> > > 5 files changed, 3 insertions(+), 17 deletions(-)
> > >
> >
> >
> > Hi Teddy,
> >
> > please combine patch 1 and 3 (Remove unused constant ...) . You can change
> > more than one item in a patch. But it has to be of the same kind.
> >
>
> Could you combine that with the earlier patch that deleted
> IC_VersionCut_C as well? (Unless that has already been merged).
>
> regards,
> dan carpenter
>
I will, thanks Dan & Philip
Teddy
On Thu, Jun 13, 2024 at 08:34:37PM +0100, Teddy Engel wrote:
> On Thu, 13 Jun 2024 at 20:22, Dan Carpenter <[email protected]>
> wrote:
>
> > On Thu, Jun 13, 2024 at 09:05:03PM +0200, Philipp Hortmann wrote:
> > > On 6/13/24 17:16, Teddy Engel wrote:
> > > > Remove some unused constants, macros, and structs.
> > > > Capitalize a constant.
> > > >
> > > > No specific patch order required.
> > > >
> > > > Teddy Engel (6):
> > > > staging: rtl8192e: Remove unused constant IC_VersionCut_E
> > > > staging: rtl8192e: Remove unused struct phy_ofdm_rx_status_rxsc
> > > > staging: rtl8192e: Remove unused constant WA_IOT_TH_VAL
> > > > staging: rtl8192e: Capitalize constant RegC38_TH
> > > > staging: rtl8192e: Remove unused macro dm_tx_bb_gain_idx_to_amplify
> > > > staging: rtl8192e: Remove unnecessary pre-declaration of struct
> > > > net_device
> > > >
> > > > drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 8 --------
> > > > drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 1 -
> > > > drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++--
> > > > drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 6 +-----
> > > > drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 1 -
> > > > 5 files changed, 3 insertions(+), 17 deletions(-)
> > > >
> > >
> > >
> > > Hi Teddy,
> > >
> > > please combine patch 1 and 3 (Remove unused constant ...) . You can
> > change
> > > more than one item in a patch. But it has to be of the same kind.
> > >
> >
> > Could you combine that with the earlier patch that deleted
> > IC_VersionCut_C as well? (Unless that has already been merged).
> >
> > regards,
> > dan carpenter
> >
> > Hey Dan,
>
> I registered to the mailing list (very) recently so unfortunately I don't
> have that change showing in my mail history...
lore.kernel.org has the history of the list since it was started, no
need to be subscribed to see everything that has happened :)
thanks
greg k-h