aboutsummaryrefslogtreecommitdiff
path: root/include/usb
diff options
context:
space:
mode:
authorChunfeng Yun2020-09-08 19:00:01 +0200
committerMarek Vasut2020-10-01 19:43:05 +0200
commitbf58cf9ab1bf13654815d9db35d73c16d4651609 (patch)
tree7b2a71583ff3bd685edca88cd77ad1630c9c7369 /include/usb
parent4312638eaf7f0bd29ffa8c7957bd51c5eb7d5a32 (diff)
usb: xhci: convert to TRB_TX_TYPE()
Use TRB_TX_TYPE() instead of (TRB_DATA_OUT/IN << TRB_TX_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 35c66042baa..07b1aebc692 100644
--- a/include/usb/xhci.h
+++ b/include/usb/xhci.h
@@ -879,7 +879,6 @@ struct xhci_event_cmd {
/* Control transfer TRB specific fields */
#define TRB_DIR_IN (1<<16)
#define TRB_TX_TYPE(p) ((p) << 16)
-#define TRB_TX_TYPE_SHIFT (16)
#define TRB_DATA_OUT 2
#define TRB_DATA_IN 3