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 4d5c63d..ce43b1f 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