]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iio: hx711: fix spurious unit-address in example
authorAndreas Klinger <ak@it-klinger.de>
Tue, 10 Jul 2018 18:19:37 +0000 (20:19 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Jul 2018 08:37:34 +0000 (09:37 +0100)
Device tree compiler (dtc) gives a warning if a device node has "@" with a
following number as it's name but no reg property.

Fix the example in the documentation of avia,hx711 to conform to dtc
behavior.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt

index 2c1b67d33c49a8a953f55a8af66c923cf8a6bf68..7222328a3d0dd6c2eb2cc23a6f35ce7d7f47cded 100644 (file)
@@ -14,7 +14,7 @@ Optional properties:
                        high time of 50 microseconds.
 
 Example:
-weight@0 {
+weight {
        compatible = "avia,hx711";
        sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
        dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;