]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: dbc: Pass dbc pointer to dbc memory init and cleanup functions
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 23 Jul 2020 14:45:23 +0000 (17:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2020 15:05:28 +0000 (17:05 +0200)
commit949cc3c95b327f1a6f8b408103d2c4733ef189e4
treebd9ba1db505a5e72f7894d0d72956fc38584dac8
parentb8f5c5a46d8cabbda6368d064b1f2d023fc0df3f
xhci: dbc: Pass dbc pointer to dbc memory init and cleanup functions

Dbc mem_init and mem_cleanup functions used xhci_hcd to get to the device
pointer. The device pointer can be accessed directly from dbc structure,
so pass a pointer to dbc as a parameter instead.

No functional changes
This change helps decoupling xhci and DbC

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200723144530.9992-21-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgcap.c