Skip to content

Commit

Permalink
staging: rtl8192e: Convert typedef QOS_TSINFO to union qos_tsinfo
Browse files Browse the repository at this point in the history
Remove typedef from union.
Rename union.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 24, 2011
1 parent a3e9909 commit 42c53e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions drivers/staging/rtl8192e/rtl819x_Qos.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#define BIT30 0x40000000
#define BIT31 0x80000000

typedef union _QOS_TSINFO{
union qos_tsinfo {
u8 charData[3];
struct {
u8 ucTrafficType:1;
Expand All @@ -68,13 +68,14 @@ typedef union _QOS_TSINFO{
u8 ucSchedule:1;
u8 ucReserved:7;
}field;
}QOS_TSINFO, *PQOS_TSINFO;
};

typedef union _TSPEC_BODY{
u8 charData[55];

struct
{
QOS_TSINFO TSInfo;
union qos_tsinfo TSInfo;
u16 NominalMSDUsize;
u16 MaxMSDUsize;
u32 MinServiceItv;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtl819x_TSProc.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ bool GetTs(
else
{
TSPEC_BODY TSpec;
PQOS_TSINFO pTSInfo = &TSpec.f.TSInfo;
union qos_tsinfo *pTSInfo = &TSpec.f.TSInfo;
struct list_head* pUnusedList =
(TxRxSelect == TX_DIR)?
(&ieee->Tx_TS_Unused_List):
Expand Down

0 comments on commit 42c53e7

Please sign in to comment.