diff mbox series

[04/17] dm: core: Avoid void * in the of-platdata structs

Message ID 20201003152534.3184504-5-sjg@chromium.org
State Accepted
Commit 08c3b88dd145d3f7f06e7ad8458905bde7a286ef
Delegated to: Simon Glass
Headers show
Series dm: test: Add unit tests for SPL | expand

Commit Message

Simon Glass Oct. 3, 2020, 3:25 p.m. UTC
These pointers point to drivers. Update the definition to make this clear.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/dt-structs.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Comments

Simon Glass Oct. 27, 2020, 1:01 a.m. UTC | #1
These pointers point to drivers. Update the definition to make this clear.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/dt-structs.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/include/dt-structs.h b/include/dt-structs.h
index 924d51fc522..eed8273d18e 100644
--- a/include/dt-structs.h
+++ b/include/dt-structs.h
@@ -8,18 +8,20 @@ 
 
 /* These structures may only be used in SPL */
 #if CONFIG_IS_ENABLED(OF_PLATDATA)
+struct driver_info;
+
 struct phandle_0_arg {
-	const void *node;
+	const struct driver_info *node;
 	int arg[0];
 };
 
 struct phandle_1_arg {
-	const void *node;
+	const struct driver_info *node;
 	int arg[1];
 };
 
 struct phandle_2_arg {
-	const void *node;
+	const struct driver_info *node;
 	int arg[2];
 };
 #include <generated/dt-structs-gen.h>