diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-12-12 11:25:58 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-01-28 12:29:20 -0500 |
commit | 7aff0fe33033fc75b61446ba29d38b1b1354af9f (patch) | |
tree | 2ddcfaf17ab0d98959478fd5133d1fe08adb8eef /arch | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
of: Add of_property_match_string() to find index into a string list
Add a helper function for finding the index of a string in a string
list property. This helper is useful for bindings that use a separate
*-name property for attaching names to tuples in another property such
as 'reg' or 'gpios'.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/testcases/tests-phandle.dtsi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/testcases/tests-phandle.dtsi b/arch/arm/boot/dts/testcases/tests-phandle.dtsi index ec0c4e6212c9..0007d3cd7dc2 100644 --- a/arch/arm/boot/dts/testcases/tests-phandle.dtsi +++ b/arch/arm/boot/dts/testcases/tests-phandle.dtsi | |||
@@ -31,6 +31,8 @@ | |||
31 | phandle-list-bad-phandle = <12345678 0 0>; | 31 | phandle-list-bad-phandle = <12345678 0 0>; |
32 | phandle-list-bad-args = <&provider2 1 0>, | 32 | phandle-list-bad-args = <&provider2 1 0>, |
33 | <&provider3 0>; | 33 | <&provider3 0>; |
34 | empty-property; | ||
35 | unterminated-string = [40 41 42 43]; | ||
34 | }; | 36 | }; |
35 | }; | 37 | }; |
36 | }; | 38 | }; |