usb: xhci: Add helper function xhci_disable_slot().
authorGuoqing Zhang <guoqing.zhang@intel.com>
Fri, 7 Apr 2017 14:56:52 +0000 (17:56 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:33:45 +0000 (15:33 -0500)
commitdb5819d95bf28e74d4227fff225f1f132d4773fd
tree6bc5e563499ea2f8c8ee2ca8d3dac79795c64ffd
parent5741cf447ab10a82c3fc76d38d261555f4cc924a
usb: xhci: Add helper function xhci_disable_slot().

Refactoring slot disable related code into a helper
function xhci_disable_slot() which can be used when
enabling test mode.

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