diff options
author | Simon Glass <sjg@chromium.org> | 2015-09-28 23:32:01 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-10-23 09:42:28 -0600 |
commit | bcbe3d157904d3dd4d6b18a81859db45a5da2678 (patch) | |
tree | a0d6577e593f6f0cf95f9f55271f17bf1946b1b3 /common/usb_hub.c | |
parent | 9f13b6d147dc74f2400ce18d9d4005ba53f21fd3 (diff) |
dm: Rename dev_get_parentdata() to dev_get_parent_priv()
The current name is inconsistent with other driver model data access
functions. Rename it and fix up all users.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'common/usb_hub.c')
-rw-r--r-- | common/usb_hub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/usb_hub.c b/common/usb_hub.c index 415b45c1f1..a92c9fb73d 100644 --- a/common/usb_hub.c +++ b/common/usb_hub.c @@ -230,7 +230,7 @@ int legacy_hub_port_reset(struct usb_device *dev, int port, #ifdef CONFIG_DM_USB int hub_port_reset(struct udevice *dev, int port, unsigned short *portstat) { - struct usb_device *udev = dev_get_parentdata(dev); + struct usb_device *udev = dev_get_parent_priv(dev); return legacy_hub_port_reset(udev, port, portstat); } @@ -610,7 +610,7 @@ int usb_hub_probe(struct usb_device *dev, int ifnum) #ifdef CONFIG_DM_USB int usb_hub_scan(struct udevice *hub) { - struct usb_device *udev = dev_get_parentdata(hub); + struct usb_device *udev = dev_get_parent_priv(hub); return usb_hub_configure(udev); } |