Commit ed7bffee authored by Mathias Nyman's avatar Mathias Nyman Committed by Greg Kroah-Hartman

xhci: dbc: Get the device pointer from dbc structure in dbc_ep_do_queue()

dbc_ep_do_queue() can now get the device pointer directly from dbc
structure instead of going through the xhci_hcd structure.

No functional changes
This change helps decoupling xhci and DbC
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200723144530.9992-12-mathias.nyman@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1da49a26
...@@ -267,11 +267,8 @@ static int ...@@ -267,11 +267,8 @@ static int
dbc_ep_do_queue(struct dbc_ep *dep, struct dbc_request *req) dbc_ep_do_queue(struct dbc_ep *dep, struct dbc_request *req)
{ {
int ret; int ret;
struct device *dev;
struct xhci_dbc *dbc = dep->dbc; struct xhci_dbc *dbc = dep->dbc;
struct xhci_hcd *xhci = dbc->xhci; struct device *dev = dbc->dev;
dev = xhci_to_hcd(xhci)->self.sysdev;
if (!req->length || !req->buf) if (!req->length || !req->buf)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment