summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:22:24 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:24 -0600
commit6a1a8162c62fcb5435495c1ddf3390a1d1967474 (patch)
treecdb92b0943b31f8ef016c0823a5146624a96af24 /drivers/usb/host/ehci.h
parent11d18a1946bd290b83d584ab521e6940e1a11d69 (diff)
downloadu-boot-imx-6a1a8162c62fcb5435495c1ddf3390a1d1967474.zip
u-boot-imx-6a1a8162c62fcb5435495c1ddf3390a1d1967474.tar.gz
u-boot-imx-6a1a8162c62fcb5435495c1ddf3390a1d1967474.tar.bz2
dm: usb: Pass EHCI controller pointer to ehci_get_portsc_register()
Adjust this function so that it is passed an EHCI controller pointer so that implementations can look up their controller. This makes the weak functions use a consistent API. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r--drivers/usb/host/ehci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 164b3cb..0fd59bc 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -256,7 +256,7 @@ int ehci_get_port_speed(struct ehci_ctrl *ctrl, uint32_t reg);
void ehci_set_usbmode(struct ehci_ctrl *ctrl);
void ehci_powerup_fixup(struct ehci_ctrl *ctrl, uint32_t *status_reg,
uint32_t *reg);
-uint32_t *ehci_get_portsc_register(struct ehci_hcor *hcor, int port);
+uint32_t *ehci_get_portsc_register(struct ehci_ctrl *ctrl, int port);
/**
* ehci_set_controller_priv() - Set up private data for the controller