of/unittest: Fix I2C bus unit-address error
authorRob Herring <robh@kernel.org>
Thu, 13 Sep 2018 19:38:56 +0000 (14:38 -0500)
committerRob Herring <robh@kernel.org>
Wed, 19 Sep 2018 22:10:06 +0000 (15:10 -0700)
dtc has new checks for I2C buses. Fix the warnings in unit-addresses in
the unittests.

drivers/of/unittest-data/testcases.dtb: Warning (i2c_bus_reg): /testcase-data/overlay-node/test-bus/i2c-test-bus/test-unittest14/i2c@0/test-mux-dev: I2C bus unit address format error, expected "20"
drivers/of/unittest-data/overlay_15.dtb: Warning (i2c_bus_reg): /fragment@0/__overlay__/test-unittest15/i2c@0/test-mux-dev: I2C bus unit address format error, expected "20"

Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest-data/overlay_15.dts
drivers/of/unittest-data/tests-overlay.dtsi

index b98f2514df4b35b42c38bc4b2b7abef697b8ff75..5728490474f6bd2d628a23ec491fe2cf106645b2 100644 (file)
@@ -20,8 +20,8 @@
                        #size-cells = <0>;
                        reg = <0>;
 
-                       test-mux-dev {
-                               reg = <32>;
+                       test-mux-dev@20 {
+                               reg = <0x20>;
                                compatible = "unittest-i2c-dev";
                                status = "okay";
                        };
index 25cf397b8f6b67f964646d4b310e5daf8b76b10e..4ea024d908ee22d6eae398c2f6ef8f6c59c12431 100644 (file)
                                                        #size-cells = <0>;
                                                        reg = <0>;
 
-                                                       test-mux-dev {
-                                                               reg = <32>;
+                                                       test-mux-dev@20 {
+                                                               reg = <0x20>;
                                                                compatible = "unittest-i2c-dev";
                                                                status = "okay";
                                                        };