]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: emxx_udc: emxx_udc: Add space around operator.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Fri, 18 Mar 2016 08:26:00 +0000 (13:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Add space around operator.This patch is found by checkpatch.pl script.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.h

index 4a2cc38de7b387e541947be766c2a9f3ec94d016..39769e3a801cb8318f56685738591914fc340877 100644 (file)
@@ -97,7 +97,7 @@
 #define BIT30          0x40000000
 #define BIT31          0x80000000
 
-#define TEST_FORCE_ENABLE              (BIT18+BIT16)
+#define TEST_FORCE_ENABLE              (BIT18 + BIT16)
 
 #define INT_SEL                                BIT10
 #define CONSTFS                                BIT09
 /*------- (0x0008) USB Address Register */
 #define USB_ADDR                       0x007F0000
 #define SOF_STATUS                     BIT15
-#define UFRAME                         (BIT14+BIT13+BIT12)
+#define UFRAME                         (BIT14 + BIT13 + BIT12)
 #define FRAME                          0x000007FF
 
 #define USB_ADRS_SHIFT                 16
 
 /*------- (0x000C) UTMI Characteristic 1 Register */
-#define SQUSET                         (BIT07+BIT06+BIT05+BIT04)
+#define SQUSET                         (BIT07 + BIT06 + BIT05 + BIT04)
 
-#define USB_SQUSET                     (BIT06+BIT05+BIT04)
+#define USB_SQUSET                     (BIT06 + BIT05 + BIT04)
 
 /*------- (0x0010) TEST Control Register */
 #define FORCEHS                                BIT02
 #define RSUM_EN                                BIT01
 
 #define USB_INT_EN_BIT \
-       (EP0_EN|SPEED_MODE_EN|USB_RST_EN|SPND_EN|RSUM_EN)
+       (EP0_EN | SPEED_MODE_EN | USB_RST_EN | SPND_EN | RSUM_EN)
 
 /*------- (0x0028) EP0 Control Register */
 #define EP0_STGSEL                     BIT18
 #define EP0_PIDCLR                     BIT09
 #define EP0_BCLR                       BIT08
 #define EP0_DEND                       BIT07
-#define EP0_DW                         (BIT06+BIT05)
+#define EP0_DW                         (BIT06 + BIT05)
 #define EP0_DW4                                0
-#define EP0_DW3                                (BIT06+BIT05)
+#define EP0_DW3                                (BIT06 + BIT05)
 #define EP0_DW2                                BIT06
 #define EP0_DW1                                BIT05
 
 #define STG_START_INT                  BIT01
 #define SETUP_INT                      BIT00
 
-#define EP0_STATUS_RW_BIT      (BIT16|BIT15|BIT11|0xFF)
+#define EP0_STATUS_RW_BIT      (BIT16 | BIT15 | BIT11 | 0xFF)
 
 /*------- (0x0030) EP0 Interrupt Enable Register */
 #define EP0_PERR_NAK_EN                        BIT16
 #define SETUP_EN                       BIT00
 
 #define EP0_INT_EN_BIT \
-       (EP0_OUT_OR_EN|EP0_OUT_EN|EP0_IN_EN|STG_END_EN|SETUP_EN)
+       (EP0_OUT_OR_EN | EP0_OUT_EN | EP0_IN_EN | STG_END_EN | SETUP_EN)
 
 /*------- (0x0034) EP0 Length Register */
 #define EP0_LDATA                      0x0000007F
 #define EPn_BUF_SINGLE                 BIT30
 
 #define EPn_DIR0                       BIT26
-#define EPn_MODE                       (BIT25+BIT24)
+#define EPn_MODE                       (BIT25 + BIT24)
 #define EPn_BULK                       0
 #define EPn_INTERRUPT                  BIT24
 #define EPn_ISO                                BIT25
 #define EPn_BCLR                       BIT09
 #define EPn_CBCLR                      BIT08
 #define EPn_DEND                       BIT07
-#define EPn_DW                         (BIT06+BIT05)
+#define EPn_DW                         (BIT06 + BIT05)
 #define EPn_DW4                                0
-#define EPn_DW3                                (BIT06+BIT05)
+#define EPn_DW3                                (BIT06 + BIT05)
 #define EPn_DW2                                BIT06
 #define EPn_DW1                                BIT05
 
 #define EPn_IN_EMPTY                   BIT00           /* R */
 
 #define EPn_INT_EN     \
-       (EPn_OUT_END_INT|EPn_OUT_INT|EPn_IN_END_INT|EPn_IN_INT)
+       (EPn_OUT_END_INT | EPn_OUT_INT | EPn_IN_END_INT | EPn_IN_INT)
 
 /*------- (0x0048:) EPn Interrupt Enable Register */
 #define EPn_OUT_END_EN                 BIT23           /* RW */
 #define ARBITER_CTR                    BIT31           /* RW */
 #define MCYCLE_RST                     BIT12           /* RW */
 
-#define ENDIAN_CTR                     (BIT09+BIT08)   /* RW */
+#define ENDIAN_CTR                     (BIT09 + BIT08) /* RW */
 #define ENDIAN_BYTE_SWAP               BIT09
 #define ENDIAN_HALF_WORD_SWAP          ENDIAN_CTR
 
 #define HTRANS_MODE                    BIT04           /* RW */
 
 #define WBURST_TYPE                    BIT02           /* RW */
-#define BURST_TYPE                     (BIT01+BIT00)   /* RW */
+#define BURST_TYPE                     (BIT01 + BIT00) /* RW */
 #define BURST_MAX_16                   0
 #define BURST_MAX_8                    BIT00
 #define BURST_MAX_4                    BIT01
 #define EPC_RST                                BIT00           /* RW */
 
 /*------- (0x1014) USBF_EPTEST Register */
-#define LINESTATE                      (BIT09+BIT08)   /* R */
+#define LINESTATE                      (BIT09 + BIT08) /* R */
 #define DM_LEVEL                       BIT09           /* R */
 #define DP_LEVEL                       BIT08           /* R */
 
@@ -485,7 +485,7 @@ struct fc_regs {
 
        struct ep_regs EP_REGS[REG_EP_NUM];     /* Endpoint Register */
 
-       u8 Reserved220[0x1000-0x220];   /* (0x0220:0x0FFF) Reserved */
+       u8 Reserved220[0x1000 - 0x220]; /* (0x0220:0x0FFF) Reserved */
 
        u32 AHBSCTR;                    /* (0x1000) AHBSCTR */
        u32 AHBMCTR;                    /* (0x1004) AHBMCTR */
@@ -494,16 +494,16 @@ struct fc_regs {
        u32 EPCTR;                      /* (0x1010) EPCTR */
        u32 USBF_EPTEST;                /* (0x1014) USBF_EPTEST */
 
-       u8 Reserved1018[0x20-0x18];     /* (0x1018:0x101F) Reserved */
+       u8 Reserved1018[0x20 - 0x18];   /* (0x1018:0x101F) Reserved */
 
        u32 USBSSVER;                   /* (0x1020) USBSSVER */
        u32 USBSSCONF;                  /* (0x1024) USBSSCONF */
 
-       u8 Reserved1028[0x110-0x28];    /* (0x1028:0x110F) Reserved */
+       u8 Reserved1028[0x110 - 0x28];  /* (0x1028:0x110F) Reserved */
 
        struct ep_dcr EP_DCR[REG_EP_NUM];       /* */
 
-       u8 Reserved1200[0x1000-0x200];  /* Reserved */
+       u8 Reserved1200[0x1000 - 0x200];        /* Reserved */
 } __aligned(32);
 
 #define EP0_PACKETSIZE                 64