diff mbox series

[2/2] dt-bindings: iio: ad7192: Fix DTC warning in the example

Message ID 20191002144542.114722-2-mripard@kernel.org (mailing list archive)
State New, archived
Headers show
Series [1/2] dt-bindings: iio: ad7192: Fix Regulator Properties | expand

Commit Message

Maxime Ripard Oct. 2, 2019, 2:45 p.m. UTC
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>
---
 Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml | 3 +++
 1 file changed, 3 insertions(+)

Comments

Rob Herring (Arm) Oct. 2, 2019, 7:14 p.m. UTC | #1
On Wed,  2 Oct 2019 16:45:42 +0200, Maxime Ripard wrote:
> 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>
> ---
>  Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 

Applied, thanks.

Rob
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml
index 9e62f54c891a..567a33a83dce 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>;