[PATCH 2/4] dt-bindings: iio: adc: Replace hard-coded GPIO/IRQ flag with a define

Matti Vaittinen mazziesaccount at gmail.com
Sun Jul 27 23:30:05 PDT 2025


On 24/07/2025 14:13, Krzysztof Kozlowski wrote:
> For readability use known defines instead of hard-coding GPIO or
> interrupt flag.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>

FWIW:
Acked-by: Matti Vaittinen <mazziesaccount at gmail.com>

Thanks!

> ---
>   Documentation/devicetree/bindings/iio/adc/maxim,max1241.yaml | 2 +-
>   Documentation/devicetree/bindings/iio/adc/rohm,bd79124.yaml  | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/adc/maxim,max1241.yaml b/Documentation/devicetree/bindings/iio/adc/maxim,max1241.yaml
> index ef8d51e74c08..592854766583 100644
> --- a/Documentation/devicetree/bindings/iio/adc/maxim,max1241.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/maxim,max1241.yaml
> @@ -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>;
>           };
>       };
> diff --git a/Documentation/devicetree/bindings/iio/adc/rohm,bd79124.yaml b/Documentation/devicetree/bindings/iio/adc/rohm,bd79124.yaml
> index 503285823376..4a8f127de7e3 100644
> --- a/Documentation/devicetree/bindings/iio/adc/rohm,bd79124.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/rohm,bd79124.yaml
> @@ -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>;




More information about the linux-arm-kernel mailing list