lkml.org 
[lkml]   [2021]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 6/8] staging: r8188eu: clean up Hal8188EPhyCfg.h
From
On 10/16/21 13:30, Martin Kaiser wrote:
> Remove a bunch of unused structs, enums and defines
> from Hal8188EPhyCfg.h.
>
> Signed-off-by: Martin Kaiser <martin@kaiser.cx>
> ---
> .../staging/r8188eu/include/Hal8188EPhyCfg.h | 59 -------------------
> 1 file changed, 59 deletions(-)
>
> diff --git a/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h b/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h
> index feae0b32cac6..58377edf724d 100644
> --- a/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h
> +++ b/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h
> @@ -21,23 +21,6 @@
> /*--------------------------Define Parameters-------------------------------*/
>
> /*------------------------------Define structure----------------------------*/
> -enum sw_chnl_cmd_id {
> - CmdID_End,
> - CmdID_SetTxPowerLevel,
> - CmdID_BBRegWrite10,
> - CmdID_WritePortUlong,
> - CmdID_WritePortUshort,
> - CmdID_WritePortUchar,
> - CmdID_RF_WriteReg,
> -};
> -
> -/* 1. Switch channel related */
> -struct sw_chnl_cmd {
> - enum sw_chnl_cmd_id CmdID;
> - u32 Para1;
> - u32 Para2;
> - u32 msDelay;
> -};
>
> enum hw90_block {
> HW90_BLOCK_MAC = 0,
> @@ -73,16 +56,6 @@ enum wireless_mode {
> WIRELESS_MODE_N_24G = BIT(3),
> };
>
> -enum phy_rate_tx_offset_area {
> - RA_OFFSET_LEGACY_OFDM1,
> - RA_OFFSET_LEGACY_OFDM2,
> - RA_OFFSET_HT_OFDM1,
> - RA_OFFSET_HT_OFDM2,
> - RA_OFFSET_HT_OFDM3,
> - RA_OFFSET_HT_OFDM4,
> - RA_OFFSET_HT_CCK,
> -};
> -
> /* BB/RF related */
> enum RF_TYPE_8190P {
> RF_TYPE_MIN, /* 0 */
> @@ -141,24 +114,6 @@ struct bb_reg_def {
> * Path A and B */
> };
>
> -struct ant_sel_ofdm {
> - u32 r_tx_antenna:4;
> - u32 r_ant_l:4;
> - u32 r_ant_non_ht:4;
> - u32 r_ant_ht1:4;
> - u32 r_ant_ht2:4;
> - u32 r_ant_ht_s1:4;
> - u32 r_ant_non_ht_s1:4;
> - u32 OFDM_TXSC:2;
> - u32 reserved:2;
> -};
> -
> -struct ant_sel_cck {
> - u8 r_cckrx_enable_2:2;
> - u8 r_cckrx_enable:2;
> - u8 r_ccktx_enable:4;
> -};
> -
> /*------------------------------Define structure----------------------------*/
>
> /*------------------------Export global variable----------------------------*/
> @@ -208,18 +163,4 @@ void storePwrIndexDiffRateOffset(struct adapter *adapter, u32 regaddr,
> #define PHY_SetRFReg(adapt, rfpath, regaddr, bitmask, data) \
> rtl8188e_PHY_SetRFReg((adapt), (rfpath), (regaddr), (bitmask), (data))
>
> -#define PHY_SetMacReg PHY_SetBBReg
> -
> -#define SIC_HW_SUPPORT 0
> -
> -#define SIC_MAX_POLL_CNT 5
> -
> -#define SIC_CMD_READY 0
> -#define SIC_CMD_WRITE 1
> -#define SIC_CMD_READ 2
> -
> -#define SIC_CMD_REG 0x1EB /* 1byte */
> -#define SIC_ADDR_REG 0x1E8 /* 1b9~1ba, 2 bytes */
> -#define SIC_DATA_REG 0x1EC /* 1bc~1bf */
> -
> #endif /* __INC_HAL8192CPHYCFG_H */
>


Acked-by: Michael Straube <straube.linux@gmail.com>

\
 
 \ /
  Last update: 2021-10-17 13:55    [W:0.094 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site