diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2020-09-08 18:59:59 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2020-10-01 19:43:05 +0200 |
commit | a826d76f2bab971b293b4ba6bf45b81871051383 (patch) | |
tree | 9d371f807e25fa35e006e0922e261c387d7bc314 /include/usb/xhci.h | |
parent | 86d1fa17fb91d2579ed059db0125a198c7a388fd (diff) | |
download | u-boot-a826d76f2bab971b293b4ba6bf45b81871051383.tar.gz u-boot-a826d76f2bab971b293b4ba6bf45b81871051383.tar.bz2 u-boot-a826d76f2bab971b293b4ba6bf45b81871051383.zip |
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/xhci.h')
-rw-r--r-- | include/usb/xhci.h | 1 |
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 */ |