Skip to content

Commit

Permalink
staging: rtl8723bs: remove typedefs in hal_com.h
Browse files Browse the repository at this point in the history
This commit fixes the following checkpatch.pl warning:

    WARNING: do not add new typedefs
    torvalds#168: FILE: include/hal_com.h:168:
    +typedef enum _RT_MEDIA_STATUS {

Signed-off-by: Marco Cesati <marco.cesati@gmail.com>
Link: https://lore.kernel.org/r/20210312082638.25512-12-marco.cesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Marco Cesati authored and gregkh committed Mar 12, 2021
1 parent e1d700a commit 84e4a52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ void EXhalbtcoutsrc_LpsNotify(struct BTC_COEXIST * pBtCoexist, u8 type);
void EXhalbtcoutsrc_ScanNotify(struct BTC_COEXIST * pBtCoexist, u8 type);
void EXhalbtcoutsrc_ConnectNotify(struct BTC_COEXIST * pBtCoexist, u8 action);
void EXhalbtcoutsrc_MediaStatusNotify(
struct BTC_COEXIST * pBtCoexist, RT_MEDIA_STATUS mediaStatus
struct BTC_COEXIST * pBtCoexist, enum RT_MEDIA_STATUS mediaStatus
);
void EXhalbtcoutsrc_SpecialPacketNotify(struct BTC_COEXIST * pBtCoexist, u8 pktType);
void EXhalbtcoutsrc_BtInfoNotify(
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8723bs/hal/hal_btcoex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ void EXhalbtcoutsrc_ConnectNotify(struct BTC_COEXIST * pBtCoexist, u8 action)
/* halbtcoutsrc_NormalLowPower(pBtCoexist); */
}

void EXhalbtcoutsrc_MediaStatusNotify(struct BTC_COEXIST * pBtCoexist, RT_MEDIA_STATUS mediaStatus)
void EXhalbtcoutsrc_MediaStatusNotify(struct BTC_COEXIST * pBtCoexist, enum RT_MEDIA_STATUS mediaStatus)
{
u8 mStatus;

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/rtl8723bs/include/hal_com.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ enum{
UP_LINK,
DOWN_LINK,
};
typedef enum _RT_MEDIA_STATUS {
enum RT_MEDIA_STATUS {
RT_MEDIA_DISCONNECT = 0,
RT_MEDIA_CONNECT = 1
} RT_MEDIA_STATUS;
};

#define MAX_DLFW_PAGE_SIZE 4096 /* @ page : 4k bytes */
enum FIRMWARE_SOURCE {
Expand Down

0 comments on commit 84e4a52

Please sign in to comment.