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
|
@ -11,6 +11,20 @@
|
|||
|
||||
#include <dm/ofnode.h>
|
||||
|
||||
/**
|
||||
* uclass_set_priv() - Set the private data for a uclass
|
||||
*
|
||||
* This is normally handled by driver model, which automatically allocates
|
||||
* private data when an 'auto' size if provided by the uclass driver.
|
||||
*
|
||||
* Use this function to override normal operation for special situations, such
|
||||
* as needing to allocate a variable amount of data.
|
||||
*
|
||||
* @uc Uclass to update
|
||||
* @priv New private-data pointer
|
||||
*/
|
||||
void uclass_set_priv(struct uclass *uc, void *priv);
|
||||
|
||||
/**
|
||||
* uclass_find_next_free_seq() - Get the next free sequence number
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue