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 /doc/driver-model/usb-info.txt | |
parent | 9f13b6d147dc74f2400ce18d9d4005ba53f21fd3 (diff) | |
download | u-boot-imx-bcbe3d157904d3dd4d6b18a81859db45a5da2678.zip u-boot-imx-bcbe3d157904d3dd4d6b18a81859db45a5da2678.tar.gz u-boot-imx-bcbe3d157904d3dd4d6b18a81859db45a5da2678.tar.bz2 |
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 'doc/driver-model/usb-info.txt')
-rw-r--r-- | doc/driver-model/usb-info.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/driver-model/usb-info.txt b/doc/driver-model/usb-info.txt index 66f2dae..e07e5ba 100644 --- a/doc/driver-model/usb-info.txt +++ b/doc/driver-model/usb-info.txt @@ -84,7 +84,7 @@ The following primary data structures are in use: This holds information about a device on the bus. All devices have this structure, even the root hub. The controller itself does not have this structure. You can access it for a device 'dev' with - dev_get_parentdata(dev). It matches the old structure except that the + dev_get_parent_priv(dev). It matches the old structure except that the parent and child information is not present (since driver model handles that). Once the device is set up, you can find the device descriptor and current configuration descriptor in this structure. @@ -279,7 +279,7 @@ USB hubs are scanned as in the section above. While hubs have their own uclass, they share some common elements with controllers: - they both attach private data to their children (struct usb_device, -accessible for a child with dev_get_parentdata(child)) +accessible for a child with dev_get_parent_priv(child)) - they both use usb_child_pre_probe() to set up their children as proper USB devices |