xhci: dbc: Add device pointer to dbc structure
Currently the dbc structure contains a pointer to struct xhci_hcd, and dbc functions use that to dig up the underlying device pointer. We are trying to decouple xhci and dbc code, and prepare for code that use dbc such as dbctty into into real device drivers. This is one step along the way. Keep functionality the same and keep the xhci pointer, and let the new device pointer point to the xhci device for now. Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20200723144530.9992-8-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
bcf87ea6e2
commit
be33f48093
@@ -878,6 +878,7 @@ static int xhci_do_dbc_init(struct xhci_hcd *xhci)
|
||||
spin_unlock_irqrestore(&xhci->lock, flags);
|
||||
|
||||
dbc->xhci = xhci;
|
||||
dbc->dev = xhci_to_hcd(xhci)->self.sysdev;
|
||||
INIT_DELAYED_WORK(&dbc->event_work, xhci_dbc_handle_events);
|
||||
spin_lock_init(&dbc->lock);
|
||||
|
||||
|
Reference in New Issue
Block a user