]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dt-bindings: iio: vadc: Fix documentation of 'reg'
authorMatthias Kaehlcke <mka@chromium.org>
Mon, 10 Sep 2018 16:02:59 +0000 (09:02 -0700)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 18:44:34 +0000 (13:44 -0500)
The documentation of Qualcomm's SPMI PMIC voltage ADC claims that the
'reg' property consists of two values, the SPMI address and the length
of the controller's registers. However the SPMI bus to which it is added
specifies "#size-cells = <0>;". Remove the controller register length
from the documentation of the field and the example.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt

index 0fb46137f9369c5c5e94080356e326e450551c06..d0c188e5c922559fd783807d97fb5883ab67c5d3 100644 (file)
@@ -13,7 +13,7 @@ VADC node:
 - reg:
     Usage: required
     Value type: <prop-encoded-array>
-    Definition: VADC base address and length in the SPMI PMIC register map.
+    Definition: VADC base address in the SPMI PMIC register map.
 
 - #address-cells:
     Usage: required
@@ -104,7 +104,7 @@ Example:
        /* VADC node */
        pmic_vadc: vadc@3100 {
                compatible = "qcom,spmi-vadc";
-               reg = <0x3100 0x100>;
+               reg = <0x3100>;
                interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
                #address-cells = <1>;
                #size-cells = <0>;