projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dm: core: Use separate priv/plat data region
[platform/kernel/u-boot.git]
/
include
/
dm
/
util.h
diff --git
a/include/dm/util.h
b/include/dm/util.h
index
01a0449
..
138893c
100644
(file)
--- a/
include/dm/util.h
+++ b/
include/dm/util.h
@@
-49,3
+49,12
@@
void dm_dump_driver_compat(void);
void dm_dump_static_driver_info(void);
#endif
+
+#if CONFIG_IS_ENABLED(OF_PLATDATA_INST) && CONFIG_IS_ENABLED(READ_ONLY)
+void *dm_priv_to_rw(void *priv);
+#else
+static inline void *dm_priv_to_rw(void *priv)
+{
+ return priv;
+}
+#endif