xhci: change xhci_test_and_clear_bit() to use new port structure
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 21 May 2018 13:40:00 +0000 (16:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 May 2018 16:03:08 +0000 (18:03 +0200)
commiteaefcf246b56ec888ccbbb6b39da688166d4d4fb
treec8ddf76600cf6a48a877ac699339d6d5a6bbafab
parent6b7f40f712344ec8fdca10450834825094e797fb
xhci: change xhci_test_and_clear_bit() to use new port structure

Don't use pointers to port array and port index as function parameters
in xhci_test_and_clear_bit(), just use a pointer to the right port
structure.

xhci_test_and_clear_bit() was the last port_array user in
xhci_get_port_status() and handle_port_status(), so remove the
port_array from them as well.

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
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h