This fixes various checkpatch spacing issues found when run on rtl819x_Qos.h. The spacing issues fixed are spacing around brackets and spacing around certain symbols in marco definitions. Signed-off-by: Nicholas Krause <xerofoify@xxxxxxxxx> --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 48 ++++++++++++------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h b/drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h index c0d15fc..e765ce5 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h @@ -88,7 +88,7 @@ typedef union _QOS_CTRL_FIELD{ u8 AckPolicy:2; u8 usRsvd2:1; u8 ucRsvdByte; - }WMM; + } WMM; /* 802.11e: QoS data type frame sent by non-AP QSTAs.*/ struct { @@ -97,7 +97,7 @@ typedef union _QOS_CTRL_FIELD{ u8 AckPolicy:2; u8 usRsvd:1; u8 TxopOrQsize; /* (BIT4=0)TXOP Duration Requested or (BIT4=1)Queue Size.*/ - }BySta; + } BySta; /* 802.11e: QoS data, QoS Null, and QoS Data+CF-Ack frames sent by HC.*/ struct { @@ -106,7 +106,7 @@ typedef union _QOS_CTRL_FIELD{ u8 AckPolicy:2; u8 usRsvd:1; u8 PSBufState; /* QAP PS Buffer State.*/ - }ByHc_Data; + } ByHc_Data; /* 802.11e: QoS (+) CF-Poll frames sent by HC.*/ struct { @@ -115,9 +115,9 @@ typedef union _QOS_CTRL_FIELD{ u8 AckPolicy:2; u8 usRsvd:1; u8 TxopLimit; /* TXOP Limit.*/ - }ByHc_CFP; + } ByHc_CFP; -}QOS_CTRL_FIELD, *PQOS_CTRL_FIELD; +} QOS_CTRL_FIELD, *PQOS_CTRL_FIELD; /* @@ -132,7 +132,7 @@ typedef union _QOS_INFO_FIELD{ struct { u8 ucParameterSetCount:4; u8 ucReserved:4; - }WMM; + } WMM; struct { /*Ref WMM_Specification_1-1.pdf, 2006-06-13 Isaiah*/ @@ -144,14 +144,14 @@ typedef union _QOS_INFO_FIELD{ u8 ucMaxSPLen:2; u8 ucReserved2:1; - }ByWmmPsSta; + } ByWmmPsSta; struct { /*Ref WMM_Specification_1-1.pdf, 2006-06-13 Isaiah*/ u8 ucParameterSetCount:4; u8 ucReserved:3; u8 ucApUapsd:1; - }ByWmmPsAp; + } ByWmmPsAp; struct { u8 ucAC3_UAPSD:1; @@ -204,7 +204,7 @@ typedef union _QOS_INFO_FIELD{ u8 ucApUapsd:1; } ByAllAp; -}QOS_INFO_FIELD, *PQOS_INFO_FIELD; +} QOS_INFO_FIELD, *PQOS_INFO_FIELD; /* ACI to AC coding. @@ -238,8 +238,8 @@ typedef union _ACI_AIFSN{ u8 ACM:1; u8 ACI:2; u8 Reserved:1; - }f; /* Field*/ -}ACI_AIFSN, *PACI_AIFSN; + } f; /* Field*/ +} ACI_AIFSN, *PACI_AIFSN; /* ECWmin/ECWmax field. @@ -250,8 +250,8 @@ typedef union _ECW{ struct { u8 ECWmin:4; u8 ECWmax:4; - }f; /* Field*/ -}ECW, *PECW; + } f; /* Field*/ +} ECW, *PECW; /* AC Parameters Record Format. @@ -265,8 +265,8 @@ typedef union _AC_PARAM{ ACI_AIFSN AciAifsn; ECW Ecw; u16 TXOPLimit; - }f; /* Field*/ -}AC_PARAM, *PAC_PARAM; + } f; /* Field*/ +} AC_PARAM, *PAC_PARAM; @@ -310,8 +310,8 @@ typedef union _QOS_TSINFO{ u8 ucTSInfoAckPolicy:2; /*WMM is reserved*/ u8 ucSchedule:1; /*WMM is reserved*/ u8 ucReserved:7; - }field; -}QOS_TSINFO, *PQOS_TSINFO; + } field; +} QOS_TSINFO, *PQOS_TSINFO; /* WMM TSPEC Body. @@ -338,7 +338,7 @@ typedef union _TSPEC_BODY{ u16 SurplusBandwidthAllowance; u16 MediumTime; } f; /* Field*/ -}TSPEC_BODY, *PTSPEC_BODY; +} TSPEC_BODY, *PTSPEC_BODY; /* @@ -371,7 +371,7 @@ typedef struct _ACM{ u64 UsedTime; u64 MediumTime; u8 HwAcmCtl; /* TRUE: UsedTime exceed => Do NOT USE this AC. It wll be written to ACM_CONTROL(0xBF BIT 0/1/2 in 8185B).*/ -}ACM, *PACM; +} ACM, *PACM; typedef u8 AC_UAPSD, *PAC_UAPSD; @@ -474,7 +474,7 @@ u8 HighestBufAC; typedef struct _OCTET_STRING{ u8 *Octet; u16 Length; -}OCTET_STRING, *POCTET_STRING; +} OCTET_STRING, *POCTET_STRING; /* STA QoS data. @@ -527,7 +527,7 @@ typedef struct _STA_QOS{ /* Enable/Disable Rx immediate BA capability.*/ u8 bEnableRxImmBA; -}STA_QOS, *PSTA_QOS; +} STA_QOS, *PSTA_QOS; /* BSS QOS data. @@ -546,7 +546,7 @@ typedef struct _BSS_QOS{ QOS_INFO_FIELD QosInfoField; AC_PARAM AcParameter[4]; -}BSS_QOS, *PBSS_QOS; +} BSS_QOS, *PBSS_QOS; /* @@ -554,12 +554,12 @@ Ref: sQoSCtlLng and QoSCtl definition in 8185 QoS code. #define QoSCtl (( (Adapter->bRegQoS) && (Adapter->dot11QoS.QoSMode &(QOS_EDCA|QOS_HCCA)) ) ?sQoSCtlLng:0) */ #define sQoSCtlLng 2 -#define QOS_CTRL_LEN(_QosMode) ((_QosMode > QOS_DISABLE)? sQoSCtlLng : 0) +#define QOS_CTRL_LEN(_QosMode) ((_QosMode > QOS_DISABLE) ? sQoSCtlLng : 0) /*Added by joseph UP Mapping to AC, using in MgntQuery_SequenceNumber() and maybe for DSCP #define UP2AC(up) ((up<3)?((up==0)?1:0):(up>>1))*/ -#define IsACValid(ac) ((ac<=7 )?true:false ) +#define IsACValid(ac) ((ac <= 7) ? true:false) #endif /* #ifndef __INC_QOS_TYPE_H*/ -- 2.1.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel