xhci: xhci-hub: use port structure members instead of xhci_get_ports()
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 21 May 2018 13:40:02 +0000 (16:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 May 2018 16:03:08 +0000 (18:03 +0200)
commit925f349d4dca1357813efdc37ec08134d79b3288
tree6bb4cb61851bb39ec128dbbcf30b831affb2d9d4
parent38986ffa6a74899be83126d55f043a1c034cba7d
xhci: xhci-hub: use port structure members instead of xhci_get_ports()

xhci_get_ports() is one of the last functions using port_arrays in
xhci-hub.c. We get the same data directly from hub and port structures
instead, so convert and remove both xhci_get_ports() and port_arrays from
all function that no longer need it.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c