mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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 <sjg@chromium.org> Tested-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
35d503700f
commit
bc79617fdf
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue