mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-30 11:01:33 +00:00
dm: core: Adjust device.h header file order
Move a few functions around so that the ordering is consistent. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
bcbe3d1579
commit
9a79f6e6d5
1 changed files with 18 additions and 18 deletions
|
@ -232,6 +232,16 @@ void *dev_get_parent_platdata(struct udevice *dev);
|
||||||
*/
|
*/
|
||||||
void *dev_get_uclass_platdata(struct udevice *dev);
|
void *dev_get_uclass_platdata(struct udevice *dev);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* dev_get_priv() - Get the private data for a device
|
||||||
|
*
|
||||||
|
* This checks that dev is not NULL, but no other checks for now
|
||||||
|
*
|
||||||
|
* @dev Device to check
|
||||||
|
* @return private data, or NULL if none
|
||||||
|
*/
|
||||||
|
void *dev_get_priv(struct udevice *dev);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dev_get_parent_priv() - Get the parent private data for a device
|
* dev_get_parent_priv() - Get the parent private data for a device
|
||||||
*
|
*
|
||||||
|
@ -246,24 +256,6 @@ void *dev_get_uclass_platdata(struct udevice *dev);
|
||||||
*/
|
*/
|
||||||
void *dev_get_parent_priv(struct udevice *dev);
|
void *dev_get_parent_priv(struct udevice *dev);
|
||||||
|
|
||||||
/**
|
|
||||||
* dev_get_priv() - Get the private data for a device
|
|
||||||
*
|
|
||||||
* This checks that dev is not NULL, but no other checks for now
|
|
||||||
*
|
|
||||||
* @dev Device to check
|
|
||||||
* @return private data, or NULL if none
|
|
||||||
*/
|
|
||||||
void *dev_get_priv(struct udevice *dev);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* struct dev_get_parent() - Get the parent of a device
|
|
||||||
*
|
|
||||||
* @child: Child to check
|
|
||||||
* @return parent of child, or NULL if this is the root device
|
|
||||||
*/
|
|
||||||
struct udevice *dev_get_parent(struct udevice *child);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dev_get_uclass_priv() - Get the private uclass data for a device
|
* dev_get_uclass_priv() - Get the private uclass data for a device
|
||||||
*
|
*
|
||||||
|
@ -274,6 +266,14 @@ struct udevice *dev_get_parent(struct udevice *child);
|
||||||
*/
|
*/
|
||||||
void *dev_get_uclass_priv(struct udevice *dev);
|
void *dev_get_uclass_priv(struct udevice *dev);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* struct dev_get_parent() - Get the parent of a device
|
||||||
|
*
|
||||||
|
* @child: Child to check
|
||||||
|
* @return parent of child, or NULL if this is the root device
|
||||||
|
*/
|
||||||
|
struct udevice *dev_get_parent(struct udevice *child);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dev_get_driver_data() - get the driver data used to bind a device
|
* dev_get_driver_data() - get the driver data used to bind a device
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue