mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 10:56:02 +01: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:
@@ -160,6 +160,16 @@ const char *uclass_get_name(enum uclass_id id)
|
||||
return uc->uc_drv->name;
|
||||
}
|
||||
|
||||
void *uclass_get_priv(const struct uclass *uc)
|
||||
{
|
||||
return uc->priv;
|
||||
}
|
||||
|
||||
void uclass_set_priv(struct uclass *uc, void *priv)
|
||||
{
|
||||
uc->priv = priv;
|
||||
}
|
||||
|
||||
enum uclass_id uclass_get_by_name(const char *name)
|
||||
{
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user