USB: DWC3: Correct DWC3_TRB_SIZE_TRBSTS definition
authorPratyush Anand <pratyush.anand@st.com>
Mon, 21 May 2012 07:16:26 +0000 (12:46 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 4 Jun 2012 15:17:20 +0000 (18:17 +0300)
Correct  define for DWC3_TRB_SIZE_TRBSTS.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h

index 4d5c63dae14d9fa681aa2c43de0a94c67c072349..ce43b1f5f341c077618052e8b8091cd48e5c1100 100644 (file)
@@ -495,7 +495,7 @@ enum dwc3_device_state {
 #define DWC3_TRB_SIZE_MASK     (0x00ffffff)
 #define DWC3_TRB_SIZE_LENGTH(n)        ((n) & DWC3_TRB_SIZE_MASK)
 #define DWC3_TRB_SIZE_PCM1(n)  (((n) & 0x03) << 24)
-#define DWC3_TRB_SIZE_TRBSTS(n)        (((n) & (0x0f << 28) >> 28))
+#define DWC3_TRB_SIZE_TRBSTS(n)        (((n) & (0x0f << 28)) >> 28)
 
 #define DWC3_TRBSTS_OK                 0
 #define DWC3_TRBSTS_MISSED_ISOC                1