]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: iio: ad7124: Fix dtc warnings in example
authorRob Herring <robh@kernel.org>
Tue, 16 Jul 2019 20:21:56 +0000 (14:21 -0600)
committerRob Herring <robh@kernel.org>
Sun, 21 Jul 2019 02:28:52 +0000 (20:28 -0600)
commit28e1305aae634f07a20684d0edfe625eb11ce4bb
treefdca1e4c94eddb564e16ed272a720963ce50609d
parentcc111edd102d6f25d6ccbd2c7f31a17dfa48e61a
dt-bindings: iio: ad7124: Fix dtc warnings in example

With the conversion to DT schema, the examples are now compiled with
dtc. The ad7124 binding example has the following warning:

Documentation/devicetree/bindings/iio/adc/adi,ad7124.example.dts:19.11-21: \
Warning (reg_format): /example-0/adc@0:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)

There's a default #size-cells and #address-cells values of 1 for
examples. For examples needing different values such as this one on a
SPI bus, they need to provide a SPI bus parent node.

Fixes: f9825156d37e ("Convert AD7124 bindings documentation to YAML format.")
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: linux-iio@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml