diff options
author | Rob Herring <robh@kernel.org> | 2018-09-14 13:39:06 -0500 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-09-17 11:54:31 +1000 |
commit | d448f9a5fd941a69cceb7008d3ac9ac0396f64d8 (patch) | |
tree | cd017e971b8eb789e260af95083768c55309d7fe /tests | |
parent | c86da84d30e4b72cfb4fee22b62bea4257bc14bf (diff) | |
download | dtc-d448f9a5fd941a69cceb7008d3ac9ac0396f64d8.zip dtc-d448f9a5fd941a69cceb7008d3ac9ac0396f64d8.tar.gz dtc-d448f9a5fd941a69cceb7008d3ac9ac0396f64d8.tar.bz2 |
Revert dts output formatting changes of spaces around brackets
Commit 32b9c6130762 ("Preserve datatype markers when emitting dts format")
add spaces between <> and [] and the encapsulated numbers. Fix this to
keep the prior formatting and not break some users needlessly.
Fixes: 32b9c6130762 ("Preserve datatype markers when emitting dts format")
Reported-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/type-preservation.dts | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/type-preservation.dts b/tests/type-preservation.dts index 62c0c23..06d5778 100644 --- a/tests/type-preservation.dts +++ b/tests/type-preservation.dts @@ -1,27 +1,27 @@ /dts-v1/; / { - #address-cells = < 0x01 >; - #size-cells = < 0x00 >; + #address-cells = <0x01>; + #size-cells = <0x00>; sub1: subnode@1 { prop_label: compatible = value_label: "subnode1"; - reg = < 0x01 >; - int-array = < 0x00 0x01 >, int_value_label: < 0x02 0x03 >; - int8 = [ 56 ]; - int8-array = [ 00 12 34 56 label: ]; - int16 = /bits/ 16 < 0x3210 >; - int16-array = /bits/ 16 < 0x1234 0x5678 0x90ab 0xcdef >; - int16-matrix = /bits/ 16 < 0x1234 0x5678 >, < 0x90ab 0xcdef >; - int64 = /bits/ 64 < 0x200000000 >; - int64-array = /bits/ 64 < 0x100000000 0x00 int64_array_label_end: >; + reg = <0x01>; + int-array = <0x00 0x01>, int_value_label: <0x02 0x03>; + int8 = [56]; + int8-array = [00 12 34 56 label:]; + int16 = /bits/ 16 <0x3210>; + int16-array = /bits/ 16 <0x1234 0x5678 0x90ab 0xcdef>; + int16-matrix = /bits/ 16 <0x1234 0x5678>, <0x90ab 0xcdef>; + int64 = /bits/ 64 <0x200000000>; + int64-array = /bits/ 64 <0x100000000 0x00 int64_array_label_end:>; a-string-with-nulls = "foo\0bar", "baz"; subsub1: subsubnode { compatible = "subsubnode1", "subsubnode"; subsubsub1: subsubsubnode { - compatible = "subsubsubnode1", < 0x1234 >, valuea: valueb: "subsubsubnode"; + compatible = "subsubsubnode1", <0x1234>, valuea: valueb: "subsubsubnode"; }; }; }; |