diff options
| author | Simon Glass <[email protected]> | 2017-08-29 14:15:58 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2017-09-15 05:27:48 -0600 |
| commit | bc79617fdfeb4afabb94774885447dd64d7bea6c (patch) | |
| tree | 77b22f03fd35d592abe2d9f7020e79abe9875849 /include | |
| parent | 35d503700f294b6f5dd930e2c1b0dd841f1b58fb (diff) | |
dtoc: Put phandle args in an array
We want to support more than one phandle argument. It makes sense to use
an array for this rather than discrete struct members. Adjust the code to
support this. Rename the member to 'arg' instead of 'id'.
Signed-off-by: Simon Glass <[email protected]>
Tested-by: Kever Yang <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/dt-structs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dt-structs.h b/include/dt-structs.h index 2ed997115ae..9ab4e2524d1 100644 --- a/include/dt-structs.h +++ b/include/dt-structs.h @@ -11,12 +11,12 @@ #if CONFIG_IS_ENABLED(OF_PLATDATA) struct phandle_0_arg { const void *node; - int id[0]; + int arg[0]; }; struct phandle_1_arg { const void *node; - int id; + int arg[1]; }; #include <generated/dt-structs.h> #endif |
