dt-bindings: iio: adc: exynos: Use defines instead of clock numbers
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 2 Oct 2019 16:07:44 +0000 (18:07 +0200)
committerRob Herring <robh@kernel.org>
Tue, 15 Oct 2019 17:29:35 +0000 (12:29 -0500)
Make the examples in Exynos ADC bindings more readable and bring them
closer to real DTS by using defines for clocks.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml

index 82bfea1..f46de17 100644 (file)
@@ -133,6 +133,8 @@ examples:
     };
 
   - |
+    #include <dt-bindings/clock/exynos3250.h>
+
     adc@126c0000 {
         compatible = "samsung,exynos3250-adc";
         reg = <0x126C0000 0x100>;
@@ -140,8 +142,8 @@ examples:
         #io-channel-cells = <1>;
         io-channel-ranges;
 
-        clocks = <&cmu 0>, // CLK_TSADC
-                 <&cmu 1>; // CLK_SCLK_TSADC
+        clocks = <&cmu CLK_TSADC>,
+                 <&cmu CLK_SCLK_TSADC>;
         clock-names = "adc", "sclk";
 
         vdd-supply = <&buck5_reg>;