mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 07:59:42 -04:00
staging: rtl8723bs: remove typedefs in hal_btcoex.c
This commit fixes the following checkpatch.pl warning:
WARNING: do not add new typedefs
#23: FILE: hal/hal_btcoex.c:23:
+typedef struct _btcoexdbginfo {
Signed-off-by: Marco Cesati <marco.cesati@gmail.com>
Link: https://lore.kernel.org/r/20210312082638.25512-33-marco.cesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d7c2b41f40
commit
4cfc1074eb
@@ -20,22 +20,22 @@ static u8 GLBtcWiFiInIQKState;
|
||||
u32 GLBtcDbgType[BTC_MSG_MAX];
|
||||
static u8 GLBtcDbgBuf[BT_TMP_BUF_SIZE];
|
||||
|
||||
typedef struct _btcoexdbginfo {
|
||||
struct BTCDBGINFO { /* _btcoexdbginfo */
|
||||
u8 *info;
|
||||
u32 size; /* buffer total size */
|
||||
u32 len; /* now used length */
|
||||
} BTCDBGINFO, *PBTCDBGINFO;
|
||||
};
|
||||
|
||||
static BTCDBGINFO GLBtcDbgInfo;
|
||||
static struct BTCDBGINFO GLBtcDbgInfo;
|
||||
|
||||
#define BT_Operation(Adapter) false
|
||||
|
||||
static void DBG_BT_INFO_INIT(PBTCDBGINFO pinfo, u8 *pbuf, u32 size)
|
||||
static void DBG_BT_INFO_INIT(struct BTCDBGINFO *pinfo, u8 *pbuf, u32 size)
|
||||
{
|
||||
if (!pinfo)
|
||||
return;
|
||||
|
||||
memset(pinfo, 0, sizeof(BTCDBGINFO));
|
||||
memset(pinfo, 0, sizeof(struct BTCDBGINFO));
|
||||
|
||||
if (pbuf && size) {
|
||||
pinfo->info = pbuf;
|
||||
@@ -45,7 +45,7 @@ static void DBG_BT_INFO_INIT(PBTCDBGINFO pinfo, u8 *pbuf, u32 size)
|
||||
|
||||
void DBG_BT_INFO(u8 *dbgmsg)
|
||||
{
|
||||
PBTCDBGINFO pinfo;
|
||||
struct BTCDBGINFO *pinfo;
|
||||
u32 msglen;
|
||||
u8 *pbuf;
|
||||
|
||||
@@ -1489,7 +1489,7 @@ void hal_btcoex_RecordPwrMode(struct adapter *padapter, u8 *pCmdBuf, u8 cmdLen)
|
||||
|
||||
void hal_btcoex_DisplayBtCoexInfo(struct adapter *padapter, u8 *pbuf, u32 bufsize)
|
||||
{
|
||||
PBTCDBGINFO pinfo;
|
||||
struct BTCDBGINFO *pinfo;
|
||||
|
||||
|
||||
pinfo = &GLBtcDbgInfo;
|
||||
|
||||
Reference in New Issue
Block a user