aboutsummaryrefslogtreecommitdiff
path: root/dtc.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-09-01 13:53:01 -0500
committerDavid Gibson <david@gibson.dropbear.id.au>2017-09-22 21:14:10 +1000
commitb3bbac02d5e320c350c460680fc7644735d01e0b (patch)
treed87dc26467b013e75a3f01661f9dba268f3e5538 /dtc.h
parentfe50bd1ecc1da273a7627a76dcd38da9d77e496f (diff)
downloaddtc-b3bbac02d5e320c350c460680fc7644735d01e0b.zip
dtc-b3bbac02d5e320c350c460680fc7644735d01e0b.tar.gz
dtc-b3bbac02d5e320c350c460680fc7644735d01e0b.tar.bz2
checks: add phandle with arg property checks
Many common bindings follow the same pattern of client properties containing a phandle and N arg cells where N is defined in the provider with a '#<specifier>-cells' property such as: intc0: interrupt-controller@0 { #interrupt-cells = <3>; }; intc1: interrupt-controller@1 { #interrupt-cells = <2>; }; node { interrupts-extended = <&intc0 1 2 3>, <&intc1 4 5>; }; Add checks for properties following this pattern. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.h')
-rw-r--r--dtc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dtc.h b/dtc.h
index 409db76..3c0532a 100644
--- a/dtc.h
+++ b/dtc.h
@@ -216,6 +216,7 @@ void append_to_property(struct node *node,
const char *get_unitname(struct node *node);
struct property *get_property(struct node *node, const char *propname);
cell_t propval_cell(struct property *prop);
+cell_t propval_cell_n(struct property *prop, int n);
struct property *get_property_by_label(struct node *tree, const char *label,
struct node **node);
struct marker *get_marker_label(struct node *tree, const char *label,