aboutsummaryrefslogtreecommitdiff
path: root/include/usb/xhci.h
diff options
context:
space:
mode:
authorChunfeng Yun2020-09-08 18:59:58 +0200
committerMarek Vasut2020-10-01 19:43:05 +0200
commit86d1fa17fb91d2579ed059db0125a198c7a388fd (patch)
treec4ae54329b490ac7785168232338a10728813d24 /include/usb/xhci.h
parent740820519c69d84b320199a8a4348e47c447ebfb (diff)
usb: xhci: convert to HCS_MAX_PORTS()
Use HCS_MAX_PORTS(p) instead of ((p & HCS_MAX_PORTS_MASK) >> HCS_MAX_PORTS_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.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/usb/xhci.h b/include/usb/xhci.h
index 3de46cd95e7..cf4c0208b2d 100644
--- a/include/usb/xhci.h
+++ b/include/usb/xhci.h
@@ -101,8 +101,6 @@ struct xhci_hccr {
/* bits 8:18, Max Interrupters */
#define HCS_MAX_INTRS(p) (((p) >> 8) & 0x7ff)
/* bits 24:31, Max Ports - max value is 0x7F = 127 ports */
-#define HCS_MAX_PORTS_SHIFT 24
-#define HCS_MAX_PORTS_MASK (0xff << HCS_MAX_PORTS_SHIFT)
#define HCS_MAX_PORTS(p) (((p) >> 24) & 0xff)
/* HCSPARAMS2 - hcs_params2 - bitmasks */