staging: rtl8192e: Cleanup multiple issues
cover staging: rtl8192e: Cleanup multiple issues
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(-)
Signature · 1 line
2.39.2
PATCH 1/6 staging: rtl8192e: Remove unused constant IC_VersionCut_E
Remove unused constant.
--- drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 1 - 1 file changed, 1 deletion(-)
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h +0 -1
@@ -89,7 +89,6 @@ enum version_8190_loopback { };#define IC_VersionCut_D 0x3 -#define IC_VersionCut_E 0x4enum rf_optype { RF_OP_By_SW_3wire =0 ,
Signature · 1 line
2.39.2
PATCH 2/6 staging: rtl8192e: Remove unused struct phy_ofdm_rx_status_rxsc
In reply to Teddy EngelRemove unused struct declaration.
--- drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 7 ------- 1 file changed, 7 deletions(-)
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h +0 -7
@@ -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;
Signature · 1 line
2.39.2
PATCH 3/6 staging: rtl8192e: Remove unused constant WA_IOT_TH_VAL
In reply to Teddy EngelRemove unused constant.
--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_dm.h +0 -2
@@ -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
Signature · 1 line
2.39.2
PATCH 4/6 staging: rtl8192e: Capitalize constant RegC38_TH
In reply to Teddy EngelAccording to kernel coding style, capitalize defined constant.
--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++-- drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +2 -2
@@ -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,
drivers/staging/rtl8192e/rtl8192e/rtl_dm.h +1 -1
@@ -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-------------------------------*/
Signature · 1 line
2.39.2
PATCH 5/6 staging: rtl8192e: Remove unused macro dm_tx_bb_gain_idx_to_amplify
In reply to Teddy EngelRemove unused macro.
--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_dm.h +0 -2
@@ -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----------------------------*/
Signature · 1 line
2.39.2
PATCH 6/6 staging: rtl8192e: Remove unnecessary pre-declaration of struct net_device
In reply to Teddy EngelRemove pre-declaration of struct.
--- drivers/staging/rtl8192e/rtl8192e/rtl_cam.h | 1 - drivers/staging/rtl8192e/rtl8192e/rtl_pci.h | 1 - 2 files changed, 2 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_cam.h +0 -1
@@ -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);
drivers/staging/rtl8192e/rtl8192e/rtl_pci.h +0 -1
@@ -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
Signature · 1 line
2.39.2
Quoted 14 lines · Teddy Engel
Remove some unused constants, macros, and structs. Capitalize a constant.
No specific patch order required.
Teddy Engel (6):
staging: rtl8192e: Remove unused constantIC_VersionCut_E
staging: rtl8192e: Remove unused structphy_ofdm_rx_status_rxsc
staging: rtl8192e: Remove unused constantWA_IOT_TH_VAL
staging: rtl8192e: Capitalize constantRegC38_TH
staging: rtl8192e: Remove unused macrodm_tx_bb_gain_idx_to_amplify
staging: rtl8192e: Remove unnecessary pre-declaration of struct
net_device
Quoted 7 lines
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
Quoted 24 lines · Philipp Hortmann
Quoted 14 lines · Teddy Engel
Remove some unused constants, macros, and structs. Capitalize a constant.
No specific patch order required.
Teddy Engel (6):
staging: rtl8192e: Remove unused constantIC_VersionCut_E
staging: rtl8192e: Remove unused structphy_ofdm_rx_status_rxsc
staging: rtl8192e: Remove unused constantWA_IOT_TH_VAL
staging: rtl8192e: Capitalize constantRegC38_TH
staging: rtl8192e: Remove unused macrodm_tx_bb_gain_idx_to_amplify
staging: rtl8192e: Remove unnecessary pre-declaration of struct
net_deviceQuoted 7 lines
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(-)
Quoted 5 lines
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
Quoted 32 lines · Dan Carpenter
Quoted 24 lines · Philipp Hortmann
Quoted 14 lines · Teddy Engel
Remove some unused constants, macros, and structs. Capitalize a constant.
No specific patch order required.
Teddy Engel (6):
staging: rtl8192e: Remove unused constantIC_VersionCut_E
staging: rtl8192e: Remove unused structphy_ofdm_rx_status_rxsc
staging: rtl8192e: Remove unused constantWA_IOT_TH_VAL
staging: rtl8192e: Capitalize constantRegC38_TH
staging: rtl8192e: Remove unused macrodm_tx_bb_gain_idx_to_amplify
staging: rtl8192e: Remove unnecessary pre-declaration of struct
net_deviceQuoted 7 lines
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(-)Quoted 5 lines
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.
Quoted 6 lines
Could you combine that with the earlier patch that deleted
IC_VersionCut_Cas well? (Unless that has already been merged).regards,
dan carpenter
I will, thanks Dan & Philip
Teddy
A message that is not in the archive (sent off-list or not yet received): CACP1t+uF6R6zDNDsL-ZZOnvWM-t2w097P0tMpxuSsj7=AXvJGA@mail.gmail.com
Greg Kroah-Hartman
maintainerQuoted 38 lines · Teddy Engel
Quoted 35 lines · Dan Carpenter
Quoted 24 lines · Philipp Hortmann
Quoted 14 lines · Teddy Engel
Remove some unused constants, macros, and structs. Capitalize a constant.
No specific patch order required.
Teddy Engel (6):
staging: rtl8192e: Remove unused constantIC_VersionCut_E
staging: rtl8192e: Remove unused structphy_ofdm_rx_status_rxsc
staging: rtl8192e: Remove unused constantWA_IOT_TH_VAL
staging: rtl8192e: Capitalize constantRegC38_TH
staging: rtl8192e: Remove unused macrodm_tx_bb_gain_idx_to_amplify
staging: rtl8192e: Remove unnecessary pre-declaration of struct
net_deviceQuoted 7 lines
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(-)Quoted 3 lines
Hi Teddy,
please combine patch 1 and 3 (Remove unused constant ...) . You can
change
Quoted 2 lines
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_Cas well? (Unless that has already been merged).
Quoted 7 lines
Quoted 4 lines
regards,
dan carpenterHey 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