Commit 0db7a34e authored by Jennifer Naumann's avatar Jennifer Naumann Committed by Greg Kroah-Hartman
Browse files

staging/rtl8192u: put { on same line as struct



This fixes the checkpatch error "open brace '{' following struct go on the
same line" in staging/rtl8192u

Signed-off-by: default avatarJennifer Naumann <Jennifer.Naumann@informatik.stud.uni-erlangen.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 35997ff0
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -1655,8 +1655,7 @@ typedef struct tx_pending_t{
	struct ieee80211_txb *txb;
}tx_pending_t;

typedef struct _bandwidth_autoswitch
{
typedef struct _bandwidth_autoswitch {
	long threshold_20Mhzto40Mhz;
	long	threshold_40Mhzto20Mhz;
	bool bforced_tx20Mhz;
@@ -1668,8 +1667,7 @@ typedef struct _bandwidth_autoswitch

#define REORDER_WIN_SIZE	128
#define REORDER_ENTRY_NUM	128
typedef struct _RX_REORDER_ENTRY
{
typedef struct _RX_REORDER_ENTRY {
	struct list_head	List;
	u16			SeqNum;
	struct ieee80211_rxb* prxb;
@@ -1709,15 +1707,13 @@ typedef struct _IbssParms{
#define MAX_NUM_RATES	264 // Max num of support rates element: 8,  Max num of ext. support rate: 255. 061122, by rcnjko.

// RF state.
typedef	enum _RT_RF_POWER_STATE
{
typedef	enum _RT_RF_POWER_STATE {
	eRfOn,
	eRfSleep,
	eRfOff
}RT_RF_POWER_STATE;

typedef struct _RT_POWER_SAVE_CONTROL
{
typedef struct _RT_POWER_SAVE_CONTROL {

	//
	// Inactive Power Save(IPS) : Disable RF when disconnected
+1 −2
Original line number Diff line number Diff line
@@ -28,8 +28,7 @@ struct ieee80211_ADDBA_Req{
//Is this need?I put here just to make it easier to define structure BA_RECORD //WB
typedef union _SEQUENCE_CONTROL{
	u16 ShortData;
	struct
	{
	struct {
		u16	FragNum:4;
		u16	SeqNum:12;
	}field;
+17 −34
Original line number Diff line number Diff line
@@ -81,8 +81,7 @@ typedef union _QOS_CTRL_FIELD{
	u16	shortData;

	// WMM spec
	struct
	{
	struct {
		u8		UP:3;
		u8		usRsvd1:1;
		u8		EOSP:1;
@@ -92,8 +91,7 @@ typedef union _QOS_CTRL_FIELD{
	}WMM;

	// 802.11e: QoS data type frame sent by non-AP QSTAs.
	struct
	{
	struct {
		u8		TID:4;
		u8		bIsQsize:1;// 0: BIT[8:15] is TXOP Duration Requested, 1: BIT[8:15] is Queue Size.
		u8		AckPolicy:2;
@@ -102,8 +100,7 @@ typedef union _QOS_CTRL_FIELD{
	}BySta;

	// 802.11e: QoS data, QoS Null, and QoS Data+CF-Ack frames sent by HC.
	struct
	{
	struct {
		u8		TID:4;
		u8		EOSP:1;
		u8		AckPolicy:2;
@@ -112,8 +109,7 @@ typedef union _QOS_CTRL_FIELD{
	}ByHc_Data;

	// 802.11e: QoS (+) CF-Poll frames sent by HC.
	struct
	{
	struct {
		u8		TID:4;
		u8		EOSP:1;
		u8		AckPolicy:2;
@@ -133,14 +129,12 @@ typedef union _QOS_CTRL_FIELD{
typedef	union _QOS_INFO_FIELD{
	u8	charData;

	struct
	{
	struct {
		u8		ucParameterSetCount:4;
		u8		ucReserved:4;
	}WMM;

	struct
	{
	struct {
		//Ref WMM_Specification_1-1.pdf, 2006-06-13 Isaiah
		u8		ucAC_VO_UAPSD:1;
		u8		ucAC_VI_UAPSD:1;
@@ -152,16 +146,14 @@ typedef union _QOS_INFO_FIELD{

	}ByWmmPsSta;

	struct
	{
	struct {
		//Ref WMM_Specification_1-1.pdf, 2006-06-13 Isaiah
		u8		ucParameterSetCount:4;
		u8		ucReserved:3;
		u8		ucApUapsd:1;
	}ByWmmPsAp;

	struct
	{
	struct {
		u8		ucAC3_UAPSD:1;
		u8		ucAC2_UAPSD:1;
		u8		ucAC1_UAPSD:1;
@@ -171,8 +163,7 @@ typedef union _QOS_INFO_FIELD{
		u8		ucMoreDataAck:1;
	} By11eSta;

	struct
	{
	struct {
		u8		ucParameterSetCount:4;
		u8		ucQAck:1;
		u8		ucQueueReq:1;
@@ -180,16 +171,14 @@ typedef union _QOS_INFO_FIELD{
		u8		ucReserved:1;
	} By11eAp;

	struct
	{
	struct {
		u8		ucReserved1:4;
		u8		ucQAck:1;
		u8		ucReserved2:2;
		u8		ucMoreDataAck:1;
	} ByWmmsaSta;

	struct
	{
	struct {
		u8		ucReserved1:4;
		u8		ucQAck:1;
		u8		ucQueueReq:1;
@@ -197,8 +186,7 @@ typedef union _QOS_INFO_FIELD{
		u8		ucReserved2:1;
	} ByWmmsaAp;

	struct
	{
	struct {
		u8		ucAC3_UAPSD:1;
		u8		ucAC2_UAPSD:1;
		u8		ucAC1_UAPSD:1;
@@ -208,8 +196,7 @@ typedef union _QOS_INFO_FIELD{
		u8		ucMoreDataAck:1;
	} ByAllSta;

	struct
	{
	struct {
		u8		ucParameterSetCount:4;
		u8		ucQAck:1;
		u8		ucQueueReq:1;
@@ -246,8 +233,7 @@ typedef u32 AC_CODING;
typedef	union _ACI_AIFSN{
	u8	charData;

	struct
	{
	struct {
		u8	AIFSN:4;
		u8	ACM:1;
		u8	ACI:2;
@@ -261,8 +247,7 @@ typedef union _ACI_AIFSN{
//
typedef	union _ECW{
	u8	charData;
	struct
	{
	struct {
		u8	ECWmin:4;
		u8	ECWmax:4;
	}f;	// Field
@@ -276,8 +261,7 @@ typedef union _AC_PARAM{
	u32	longData;
	u8	charData[4];

	struct
	{
	struct {
		ACI_AIFSN	AciAifsn;
		ECW		Ecw;
		u16		TXOPLimit;
@@ -336,8 +320,7 @@ typedef union _QOS_TSINFO{
typedef union _TSPEC_BODY{
	u8		charData[55];

	struct
	{
	struct {
		QOS_TSINFO	TSInfo;	//u8	TSInfo[3];
		u16	NominalMSDUsize;
		u16	MaxMSDUsize;
+9 −18
Original line number Diff line number Diff line
@@ -559,8 +559,7 @@ typedef enum _WIRELESS_MODE {

#define RTL_IOCTL_WPA_SUPPLICANT		SIOCIWFIRSTPRIV+30

typedef struct buffer
{
typedef struct buffer {
	struct buffer *next;
	u32 *buf;

@@ -600,8 +599,7 @@ typedef struct _RT_SMOOTH_DATA_4RF {

#define MAX_8192U_RX_SIZE			8192    // This maybe changed for D-cut larger aggregation size
//stats seems messed up, clean it ASAP
typedef struct Stats
{
typedef struct Stats {
	unsigned long txrdu;
//	unsigned long rxrdu;
	//unsigned long rxnolast;
@@ -748,8 +746,7 @@ typedef enum _RT_RF_TYPE_819xU{
        RF_PSEUDO_11N = 4,
}RT_RF_TYPE_819xU, *PRT_RF_TYPE_819xU;

typedef struct _rate_adaptive
{
typedef struct _rate_adaptive {
	u8				rate_adaptive_disabled;
	u8				ratr_state;
	u16				reserve;
@@ -775,21 +772,18 @@ typedef struct _rate_adaptive
#define TxBBGainTableLength 37
#define	CCKTxBBGainTableLength 23

typedef struct _txbbgain_struct
{
typedef struct _txbbgain_struct {
	long	txbb_iq_amplifygain;
	u32	txbbgain_value;
} txbbgain_struct, *ptxbbgain_struct;

typedef struct _ccktxbbgain_struct
{
typedef struct _ccktxbbgain_struct {
	//The Value is from a22 to a29 one Byte one time is much Safer
	u8	ccktxbb_valuearray[8];
} ccktxbbgain_struct,*pccktxbbgain_struct;


typedef struct _init_gain
{
typedef struct _init_gain {
	u8				xaagccore1;
	u8				xbagccore1;
	u8				xcagccore1;
@@ -799,8 +793,7 @@ typedef struct _init_gain
} init_gain, *pinit_gain;
//by amy 0606

typedef struct _phy_ofdm_rx_status_report_819xusb
{
typedef struct _phy_ofdm_rx_status_report_819xusb {
	u8	trsw_gain_X[4];
	u8	pwdb_all;
	u8	cfosho_X[4];
@@ -816,8 +809,7 @@ typedef struct _phy_ofdm_rx_status_report_819xusb
	u8  rxsc_sgien_exflg;
}phy_sts_ofdm_819xusb_t;

typedef struct _phy_cck_rx_status_report_819xusb
{
typedef struct _phy_cck_rx_status_report_819xusb {
	/* For CCK rate descriptor. This is a unsigned 8:1 variable. LSB bit presend
	   0.5. And MSB 7 bts presend a signed value. Range from -64~+63.5. */
	u8	adc_pwdb_X[4];
@@ -881,8 +873,7 @@ typedef enum _tag_TxCmd_Config_Index{
	TXCMD_XXXX_CTRL,
}DCMD_TXCMD_OP;

typedef struct r8192_priv
{
typedef struct r8192_priv {
	struct usb_device *udev;
	//added for maintain info from eeprom
	short epromtype;
+1 −2
Original line number Diff line number Diff line
@@ -164,8 +164,7 @@ static struct usb_driver rtl8192_usb_driver = {
};


typedef struct _CHANNEL_LIST
{
typedef struct _CHANNEL_LIST {
	u8	Channel[32];
	u8	Len;
}CHANNEL_LIST, *PCHANNEL_LIST;
Loading