usb: xhci-mtk: rebuild the way to get bandwidth domain
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Mon, 8 Mar 2021 02:52:01 +0000 (10:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:37:17 +0000 (09:37 +0100)
commitbf7da03ae46af445123266959025166aaafd3205
treefccac02896bcb54c781a233a3b948af75ce9713a
parent11fdcc3937b11c61aa097181c60445683150f3b3
usb: xhci-mtk: rebuild the way to get bandwidth domain

Rebuild the function get_bw_index(), get the bandwidth domain
directly instead its index of domain array.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/de618970301702c57bd352bf87df48bc17c699dd.1615170625.git.chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk-sch.c