dt-bindings: iio: ad7192: Fix DTC warning in the example
authorMaxime Ripard <mripard@kernel.org>
Wed, 2 Oct 2019 14:45:42 +0000 (16:45 +0200)
committerRob Herring <robh@kernel.org>
Wed, 2 Oct 2019 19:14:28 +0000 (14:14 -0500)
The example contains an SPI bus and device, but doesn't have the
appropriate size and address cells size.

This creates a DTC warning when the example is compiled since the default
ones will not match what the device uses. Let's add them to remove that
warning.

Fixes: f7356e47032c ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192")
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml

index 9e62f54c891aade43503446b783e4b6f92a4c526..567a33a83dce8b210d69d0291a0eb5bf2a15309d 100644 (file)
@@ -95,6 +95,9 @@ required:
 examples:
   - |
     spi0 {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
       adc@0 {
         compatible = "adi,ad7192";
         reg = <0>;