Skip to content

Commit

Permalink
staging: HalBtc8723b2Ant: remove useless typedef's
Browse files Browse the repository at this point in the history
This commit fixes the following checkpatch.pl warnings:

    WARNING: do not add new typedefs
    torvalds#19: FILE: hal/HalBtc8723b2Ant.h:19:
    +typedef enum _BT_INFO_SRC_8723B_2ANT {

    WARNING: do not add new typedefs
    torvalds#26: FILE: hal/HalBtc8723b2Ant.h:26:
    +typedef enum _BT_8723B_2ANT_BT_STATUS {

    WARNING: do not add new typedefs
    torvalds#36: FILE: hal/HalBtc8723b2Ant.h:36:
    +typedef enum _BT_8723B_2ANT_COEX_ALGO {

    WARNING: do not add new typedefs
    torvalds#51: FILE: hal/HalBtc8723b2Ant.h:51:
    +typedef struct _COEX_DM_8723B_2ANT {

    WARNING: do not add new typedefs
    torvalds#104: FILE: hal/HalBtc8723b2Ant.h:104:
    +typedef struct _COEX_STA_8723B_2ANT {

Signed-off-by: Marco Cesati <marco.cesati@gmail.com>
Link: https://lore.kernel.org/r/20210305101151.13137-1-marco.cesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Marco Cesati authored and gregkh committed Mar 10, 2021
1 parent 266f28f commit 8512b8f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ do { \
} while (0)

/* Global variables, these are static variables */
static COEX_DM_8723B_2ANT GLCoexDm8723b2Ant;
static PCOEX_DM_8723B_2ANT pCoexDm = &GLCoexDm8723b2Ant;
static COEX_STA_8723B_2ANT GLCoexSta8723b2Ant;
static PCOEX_STA_8723B_2ANT pCoexSta = &GLCoexSta8723b2Ant;
static struct COEX_DM_8723B_2ANT GLCoexDm8723b2Ant;
static struct COEX_DM_8723B_2ANT * pCoexDm = &GLCoexDm8723b2Ant;
static struct COEX_STA_8723B_2ANT GLCoexSta8723b2Ant;
static struct COEX_STA_8723B_2ANT * pCoexSta = &GLCoexSta8723b2Ant;

static const char *const GLBtInfoSrc8723b2Ant[] = {
"BT Info[wifi fw]",
Expand Down
20 changes: 10 additions & 10 deletions drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@

#define BTC_RSSI_COEX_THRESH_TOL_8723B_2ANT 2

typedef enum _BT_INFO_SRC_8723B_2ANT {
enum BT_INFO_SRC_8723B_2ANT {
BT_INFO_SRC_8723B_2ANT_WIFI_FW = 0x0,
BT_INFO_SRC_8723B_2ANT_BT_RSP = 0x1,
BT_INFO_SRC_8723B_2ANT_BT_ACTIVE_SEND = 0x2,
BT_INFO_SRC_8723B_2ANT_MAX
} BT_INFO_SRC_8723B_2ANT, *PBT_INFO_SRC_8723B_2ANT;
};

typedef enum _BT_8723B_2ANT_BT_STATUS {
enum BT_8723B_2ANT_BT_STATUS {
BT_8723B_2ANT_BT_STATUS_NON_CONNECTED_IDLE = 0x0,
BT_8723B_2ANT_BT_STATUS_CONNECTED_IDLE = 0x1,
BT_8723B_2ANT_BT_STATUS_INQ_PAGE = 0x2,
BT_8723B_2ANT_BT_STATUS_ACL_BUSY = 0x3,
BT_8723B_2ANT_BT_STATUS_SCO_BUSY = 0x4,
BT_8723B_2ANT_BT_STATUS_ACL_SCO_BUSY = 0x5,
BT_8723B_2ANT_BT_STATUS_MAX
} BT_8723B_2ANT_BT_STATUS, *PBT_8723B_2ANT_BT_STATUS;
};

typedef enum _BT_8723B_2ANT_COEX_ALGO {
enum BT_8723B_2ANT_COEX_ALGO {
BT_8723B_2ANT_COEX_ALGO_UNDEFINED = 0x0,
BT_8723B_2ANT_COEX_ALGO_SCO = 0x1,
BT_8723B_2ANT_COEX_ALGO_HID = 0x2,
Expand All @@ -46,9 +46,9 @@ typedef enum _BT_8723B_2ANT_COEX_ALGO {
BT_8723B_2ANT_COEX_ALGO_HID_A2DP_PANEDR = 0x9,
BT_8723B_2ANT_COEX_ALGO_HID_A2DP = 0xa,
BT_8723B_2ANT_COEX_ALGO_MAX = 0xb,
} BT_8723B_2ANT_COEX_ALGO, *PBT_8723B_2ANT_COEX_ALGO;
};

typedef struct _COEX_DM_8723B_2ANT {
struct COEX_DM_8723B_2ANT {
/* fw mechanism */
u8 preBtDecPwrLvl;
u8 curBtDecPwrLvl;
Expand Down Expand Up @@ -99,9 +99,9 @@ typedef struct _COEX_DM_8723B_2ANT {

bool bNeedRecover0x948;
u32 backup0x948;
} COEX_DM_8723B_2ANT, *PCOEX_DM_8723B_2ANT;
};

typedef struct _COEX_STA_8723B_2ANT {
struct COEX_STA_8723B_2ANT {
bool bBtLinkExist;
bool bScoExist;
bool bA2dpExist;
Expand All @@ -124,7 +124,7 @@ typedef struct _COEX_STA_8723B_2ANT {
bool bC2hBtInquiryPage;
u8 btRetryCnt;
u8 btInfoExt;
} COEX_STA_8723B_2ANT, *PCOEX_STA_8723B_2ANT;
};

/* */
/* The following is interface which will notify coex module. */
Expand Down

0 comments on commit 8512b8f

Please sign in to comment.