File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,12 @@ static int devicetree_state_flags;
84
84
#define DTSF_APPLY_FAIL 0x01
85
85
#define DTSF_REVERT_FAIL 0x02
86
86
87
+ static int of_prop_val_eq (const struct property * p1 , const struct property * p2 )
88
+ {
89
+ return p1 -> length == p2 -> length &&
90
+ !memcmp (p1 -> value , p2 -> value , (size_t )p1 -> length );
91
+ }
92
+
87
93
/*
88
94
* If a changeset apply or revert encounters an error, an attempt will
89
95
* be made to undo partial changes, but may fail. If the undo fails
Original file line number Diff line number Diff line change @@ -908,12 +908,6 @@ static inline const void *of_device_get_match_data(const struct device *dev)
908
908
#define of_node_cmp (s1 , s2 ) strcasecmp((s1), (s2))
909
909
#endif
910
910
911
- static inline int of_prop_val_eq (const struct property * p1 , const struct property * p2 )
912
- {
913
- return p1 -> length == p2 -> length &&
914
- !memcmp (p1 -> value , p2 -> value , (size_t )p1 -> length );
915
- }
916
-
917
911
#define for_each_property_of_node (dn , pp ) \
918
912
for (pp = dn->properties; pp != NULL; pp = pp->next)
919
913
You can’t perform that action at this time.
0 commit comments