Commit cdef21cc authored by Ana Rey's avatar Ana Rey Committed by Greg Kroah-Hartman

staging: rtl8187se: Fixed open brace in r8180.h

The open brace following struct have to go on the same line as a codingStyle of
 the kernel recommends

This patch fixed errors with a open brace found by checkpatch.pl script in
r8180.h
Signed-off-by: default avatarAna Rey <anarey@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad0ec37b
...@@ -105,8 +105,7 @@ typedef u32 AC_CODING; ...@@ -105,8 +105,7 @@ typedef u32 AC_CODING;
*/ */
typedef union _ECW { typedef union _ECW {
u8 charData; u8 charData;
struct struct {
{
u8 ECWmin:4; u8 ECWmin:4;
u8 ECWmax:4; u8 ECWmax:4;
} f; /* Field */ } f; /* Field */
...@@ -118,8 +117,7 @@ typedef union _ECW { ...@@ -118,8 +117,7 @@ typedef union _ECW {
typedef union _ACI_AIFSN { typedef union _ACI_AIFSN {
u8 charData; u8 charData;
struct struct {
{
u8 AIFSN:4; u8 AIFSN:4;
u8 ACM:1; u8 ACM:1;
u8 ACI:2; u8 ACI:2;
...@@ -135,8 +133,7 @@ typedef union _AC_PARAM { ...@@ -135,8 +133,7 @@ typedef union _AC_PARAM {
u32 longData; u32 longData;
u8 charData[4]; u8 charData[4];
struct struct {
{
ACI_AIFSN AciAifsn; ACI_AIFSN AciAifsn;
ECW Ecw; ECW Ecw;
u16 TXOPLimit; u16 TXOPLimit;
...@@ -170,16 +167,14 @@ typedef union _ThreeWire { ...@@ -170,16 +167,14 @@ typedef union _ThreeWire {
} ThreeWireReg; } ThreeWireReg;
typedef struct buffer typedef struct buffer {
{
struct buffer *next; struct buffer *next;
u32 *buf; u32 *buf;
dma_addr_t dma; dma_addr_t dma;
} buffer; } buffer;
/* YJ,modified,080828. */ /* YJ,modified,080828. */
typedef struct Stats typedef struct Stats {
{
unsigned long txrdu; unsigned long txrdu;
unsigned long rxrdu; unsigned long rxrdu;
unsigned long rxnolast; unsigned long rxnolast;
...@@ -222,8 +217,7 @@ typedef struct Stats ...@@ -222,8 +217,7 @@ typedef struct Stats
#define POWER_PROFILE_AC 0 #define POWER_PROFILE_AC 0
#define POWER_PROFILE_BATTERY 1 #define POWER_PROFILE_BATTERY 1
typedef struct _link_detect_t typedef struct _link_detect_t {
{
u32 RxFrameNum[MAX_LD_SLOT_NUM]; /* number of Rx Frame. u32 RxFrameNum[MAX_LD_SLOT_NUM]; /* number of Rx Frame.
* CheckForHang_period to determine * CheckForHang_period to determine
* link status. * link status.
...@@ -270,8 +264,7 @@ typedef enum _LED_CTL_MODE { ...@@ -270,8 +264,7 @@ typedef enum _LED_CTL_MODE {
LED_CTL_POWER_OFF = 7 LED_CTL_POWER_OFF = 7
} LED_CTL_MODE; } LED_CTL_MODE;
typedef enum _RT_RF_POWER_STATE typedef enum _RT_RF_POWER_STATE {
{
eRfOn, eRfOn,
eRfSleep, eRfSleep,
eRfOff eRfOff
...@@ -321,15 +314,15 @@ enum _ReasonCode { ...@@ -321,15 +314,15 @@ enum _ReasonCode {
dest_not_exist = 0x31, /* 49 */ dest_not_exist = 0x31, /* 49 */
dest_not_QSTA = 0x32, /* 50 */ dest_not_QSTA = 0x32, /* 50 */
}; };
typedef enum _RT_PS_MODE
{ typedef enum _RT_PS_MODE {
eActive, /* Active/Continuous access. */ eActive, /* Active/Continuous access. */
eMaxPs, /* Max power save mode. */ eMaxPs, /* Max power save mode. */
eFastPs /* Fast power save mode. */ eFastPs /* Fast power save mode. */
} RT_PS_MODE; } RT_PS_MODE;
/* by amy for power save. */ /* by amy for power save. */
typedef struct r8180_priv typedef struct r8180_priv {
{
struct pci_dev *pdev; struct pci_dev *pdev;
short epromtype; short epromtype;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment