From: Maxime Ripard Date: Wed, 2 Oct 2019 14:45:42 +0000 (+0200) Subject: dt-bindings: iio: ad7192: Fix DTC warning in the example X-Git-Tag: v5.4-rc2~11^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d32db74a3cafa9c96608265db6c40317040df41;p=thirdparty%2Flinux.git dt-bindings: iio: ad7192: Fix DTC warning in the example 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 Signed-off-by: Rob Herring --- diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml index 9e62f54c891aa..567a33a83dce8 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml @@ -95,6 +95,9 @@ required: examples: - | spi0 { + #address-cells = <1>; + #size-cells = <0>; + adc@0 { compatible = "adi,ad7192"; reg = <0>;