summaryrefslogtreecommitdiff
path: root/include/usb
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2020-09-08 18:59:59 +0200
committerMarek Vasut <marex@denx.de>2020-10-01 19:43:05 +0200
commita826d76f2bab971b293b4ba6bf45b81871051383 (patch)
tree9d371f807e25fa35e006e0922e261c387d7bc314 /include/usb
parent86d1fa17fb91d2579ed059db0125a198c7a388fd (diff)
usb: xhci: convert to TRB_TYPE()
Use TRB_TYPE(p) instead of ((p) << TRB_TYPE_SHIFT) Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/xhci.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/usb/xhci.h b/include/usb/xhci.h
index cf4c0208b2..bdba51df59 100644
--- a/include/usb/xhci.h
+++ b/include/usb/xhci.h
@@ -903,7 +903,6 @@ union xhci_trb {
/* TRB bit mask */
#define TRB_TYPE_BITMASK (0xfc00)
#define TRB_TYPE(p) ((p) << 10)
-#define TRB_TYPE_SHIFT (10)
#define TRB_FIELD_TO_TYPE(p) (((p) & TRB_TYPE_BITMASK) >> 10)
/* TRB type IDs */