[RESEND PATCH v2 04/11] usb: xhci: convert to HCS_MAX_PORTS()

Bin Meng
2020-09-04T06:54:06Z

On Wed, Sep 2, 2020 at 2:15 PM Frank Wunderlich <linux@fw-web.de> wrote:
>
> From: Chunfeng Yun <chunfeng.yun@mediatek.com>
>
> 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>
> ---
> drivers/usb/host/xhci.c | 3 +--
> include/usb/xhci.h | 2 --
> 2 files changed, 1 insertion(+), 4 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>