]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dt-bindings: iio: adc: Replace hard-coded GPIO/IRQ flag with a define
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 24 Jul 2025 11:13:47 +0000 (13:13 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 10:57:05 +0000 (11:57 +0100)
For readability use known defines instead of hard-coding GPIO or
interrupt flag.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Acked-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/20250724111345.47889-6-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/adc/maxim,max1241.yaml
Documentation/devicetree/bindings/iio/adc/rohm,bd79124.yaml

index ef8d51e74c089a43d733f7a5a38774df7497b0d1..5928547665833bddc3d793b7622cfe929ae2f46f 100644 (file)
@@ -63,6 +63,6 @@ examples:
             vdd-supply = <&adc_vdd>;
             vref-supply = <&adc_vref>;
             spi-max-frequency = <1000000>;
-            shutdown-gpios = <&gpio 26 1>;
+            shutdown-gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
         };
     };
index 50328582337647e54c713b0a158f5199c2752a55..4a8f127de7e3212d6162d1aaa7e12ac1d8032400 100644 (file)
@@ -81,7 +81,7 @@ examples:
             reg = <0x10>;
 
             interrupt-parent = <&gpio1>;
-            interrupts = <29 8>;
+            interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
 
             vdd-supply = <&dummyreg>;
             iovdd-supply = <&dummyreg>;