Skip to content

Commit 84e4a52

Browse files
Marco Cesatigregkh
authored andcommitted
staging: rtl8723bs: remove typedefs in hal_com.h
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e1d700a commit 84e4a52

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ void EXhalbtcoutsrc_LpsNotify(struct BTC_COEXIST * pBtCoexist, u8 type);
540540
void EXhalbtcoutsrc_ScanNotify(struct BTC_COEXIST * pBtCoexist, u8 type);
541541
void EXhalbtcoutsrc_ConnectNotify(struct BTC_COEXIST * pBtCoexist, u8 action);
542542
void EXhalbtcoutsrc_MediaStatusNotify(
543-
struct BTC_COEXIST * pBtCoexist, RT_MEDIA_STATUS mediaStatus
543+
struct BTC_COEXIST * pBtCoexist, enum RT_MEDIA_STATUS mediaStatus
544544
);
545545
void EXhalbtcoutsrc_SpecialPacketNotify(struct BTC_COEXIST * pBtCoexist, u8 pktType);
546546
void EXhalbtcoutsrc_BtInfoNotify(

drivers/staging/rtl8723bs/hal/hal_btcoex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ void EXhalbtcoutsrc_ConnectNotify(struct BTC_COEXIST * pBtCoexist, u8 action)
11051105
/* halbtcoutsrc_NormalLowPower(pBtCoexist); */
11061106
}
11071107

1108-
void EXhalbtcoutsrc_MediaStatusNotify(struct BTC_COEXIST * pBtCoexist, RT_MEDIA_STATUS mediaStatus)
1108+
void EXhalbtcoutsrc_MediaStatusNotify(struct BTC_COEXIST * pBtCoexist, enum RT_MEDIA_STATUS mediaStatus)
11091109
{
11101110
u8 mStatus;
11111111

drivers/staging/rtl8723bs/include/hal_com.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ enum{
165165
UP_LINK,
166166
DOWN_LINK,
167167
};
168-
typedef enum _RT_MEDIA_STATUS {
168+
enum RT_MEDIA_STATUS {
169169
RT_MEDIA_DISCONNECT = 0,
170170
RT_MEDIA_CONNECT = 1
171-
} RT_MEDIA_STATUS;
171+
};
172172

173173
#define MAX_DLFW_PAGE_SIZE 4096 /* @ page : 4k bytes */
174174
enum FIRMWARE_SOURCE {

0 commit comments

Comments
 (0)