mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
cfb9c9b77c
commit
e81bf6d72f
2 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue