]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitdd98570be1fb3bec14c2347edf4a499aaf7870de
treebd9ba1db505a5e72f7894d0d72956fc38584dac8
parentac286428c69fb3dc2924ce0ad5a11b5577b2f5da
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