summaryrefslogtreecommitdiff
path: root/include/dt-structs.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-08-29 23:15:56 +0300
committerSimon Glass <sjg@chromium.org>2017-09-15 14:27:47 +0300
commit0d15463c0537806f70ea2359e32e4deb8c4766c2 (patch)
tree1179616d8c60355db39515d34d23bc62fe9eb50c /include/dt-structs.h
parent8fed2eb20c2ef95d69f9683ab07f0ea869616713 (diff)
downloadu-boot-0d15463c0537806f70ea2359e32e4deb8c4766c2.tar.xz
dtoc: Rename the phandle struct
Rather than naming the phandle struct according to the number of cells it uses (e.g. struct phandle_2_cell) name it according to the number of arguments it has (e.g. struct phandle_1_arg). This is a more intuitive naming. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'include/dt-structs.h')
-rw-r--r--include/dt-structs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/dt-structs.h b/include/dt-structs.h
index 0732c442ff..2ed997115a 100644
--- a/include/dt-structs.h
+++ b/include/dt-structs.h
@@ -9,7 +9,12 @@
/* These structures may only be used in SPL */
#if CONFIG_IS_ENABLED(OF_PLATDATA)
-struct phandle_2_cell {
+struct phandle_0_arg {
+ const void *node;
+ int id[0];
+};
+
+struct phandle_1_arg {
const void *node;
int id;
};