Skip to content

Commit 4d32db7

Browse files
mripardrobherring
authored andcommitted
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: f7356e4 ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192") Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent 932bae3 commit 4d32db7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ required:
9595
examples:
9696
- |
9797
spi0 {
98+
#address-cells = <1>;
99+
#size-cells = <0>;
100+
98101
adc@0 {
99102
compatible = "adi,ad7192";
100103
reg = <0>;

0 commit comments

Comments
 (0)