mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
dm: core: Add function to access uclass priv
Add functions so this information is not accessed directly. This will be needed for of-platdata which stores it in a different place. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c238eeebc9
commit
806473933a
3 changed files with 32 additions and 0 deletions
|
@ -114,6 +114,14 @@ struct uclass_driver {
|
|||
#define UCLASS_DRIVER(__name) \
|
||||
ll_entry_declare(struct uclass_driver, __name, uclass_driver)
|
||||
|
||||
/**
|
||||
* uclass_get_priv() - Get the private data for a uclass
|
||||
*
|
||||
* @uc Uclass to check
|
||||
* @return private data, or NULL if none
|
||||
*/
|
||||
void *uclass_get_priv(const struct uclass *uc);
|
||||
|
||||
/**
|
||||
* uclass_get() - Get a uclass based on an ID, creating it if needed
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue