diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 07:25:41 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-26 07:03:09 +0300 |
commit | e81bf6d72fbd016027d856f6da6047d39903390b (patch) | |
tree | dd0b10d68ea607c147f2cfff39833c498fe7267a /include/dm/uclass-internal.h | |
parent | cfb9c9b77c29f48ae2c71ff30ca294bdaf369d87 (diff) | |
download | u-boot-e81bf6d72fbd016027d856f6da6047d39903390b.tar.xz |
dm: core: Add warnings to private / platform setters
Add a warning to each of these functions so that people do not attempt to
use them outside driver model.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/uclass-internal.h')
-rw-r--r-- | include/dm/uclass-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dm/uclass-internal.h b/include/dm/uclass-internal.h index f2a780682b..57c664c6da 100644 --- a/include/dm/uclass-internal.h +++ b/include/dm/uclass-internal.h @@ -69,6 +69,9 @@ * Use this function to override normal operation for special situations, such * as needing to allocate a variable amount of data. * + * If OF_PLATDATA_RT is enabled, this function cannot be used out of core driver + * model code, since the pointer must be within the gd->dm_priv_base region. + * * @uc Uclass to update * @priv New private-data pointer */ |