diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-23 05:30:30 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 22:24:40 +0300 |
commit | fb8c9fb3fa422314d53516ba30f280be1e7216f9 (patch) | |
tree | 8d35bd5f521f515995ec85d9276d39c917b7b6b2 /drivers/core/uclass.c | |
parent | 89ba6d553572fe9177ae472170b8373e49f97953 (diff) | |
download | u-boot-fb8c9fb3fa422314d53516ba30f280be1e7216f9.tar.xz |
dm: core: Rename the priv/plat members
These are supposed to be private to driver model, not accessed by any code
outside. Add a trailing underscore to indicate this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/uclass.c')
-rw-r--r-- | drivers/core/uclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index e845f60472..f60bc9a850 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -165,12 +165,12 @@ const char *uclass_get_name(enum uclass_id id) void *uclass_get_priv(const struct uclass *uc) { - return uc->priv; + return uc->priv_; } void uclass_set_priv(struct uclass *uc, void *priv) { - uc->priv = priv; + uc->priv_ = priv; } enum uclass_id uclass_get_by_name(const char *name) |