diff mbox series

[v2,19/27] ARM: dts: qcom: pm8058: use defined IRQ flags

Message ID 20230702134320.98831-20-dmitry.baryshkov@linaro.org
State Superseded
Headers show
Series None | expand

Commit Message

Dmitry Baryshkov July 2, 2023, 1:43 p.m. UTC
Use symbolic names for IRQ flags instead of using the numeric values.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm/boot/dts/qcom/pm8058.dtsi | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Comments

Konrad Dybcio July 3, 2023, 11:53 a.m. UTC | #1
On 2.07.2023 15:43, Dmitry Baryshkov wrote:
> Use symbolic names for IRQ flags instead of using the numeric values.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  arch/arm/boot/dts/qcom/pm8058.dtsi | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/qcom/pm8058.dtsi b/arch/arm/boot/dts/qcom/pm8058.dtsi
> index 913a511719fa..3683d7b60918 100644
> --- a/arch/arm/boot/dts/qcom/pm8058.dtsi
> +++ b/arch/arm/boot/dts/qcom/pm8058.dtsi
> @@ -12,7 +12,8 @@ pwrkey@1c {
>  			compatible = "qcom,pm8058-pwrkey";
>  			reg = <0x1c>;
>  			interrupt-parent = <&pm8058>;
> -			interrupts = <50 1>, <51 1>;
> +			interrupts = <50 IRQ_TYPE_EDGE_RISING>,
> +				     <51 IRQ_TYPE_EDGE_RISING>;
>  			debounce = <15625>;
>  			pull-up;
>  		};
> @@ -61,7 +62,8 @@ pm8058_keypad: keypad@148 {
>  			compatible = "qcom,pm8058-keypad";
>  			reg = <0x148>;
>  			interrupt-parent = <&pm8058>;
> -			interrupts = <74 1>, <75 1>;
> +			interrupts = <74 IRQ_TYPE_EDGE_RISING>,
> +				     <75 IRQ_TYPE_EDGE_RISING>;
>  			debounce = <15>;
>  			scan-delay = <32>;
>  			row-hold = <91500>;
> @@ -135,7 +137,7 @@ rtc@1e8 {
>  			compatible = "qcom,pm8058-rtc";
>  			reg = <0x1e8>;
>  			interrupt-parent = <&pm8058>;
> -			interrupts = <39 1>;
> +			interrupts = <39 IRQ_TYPE_EDGE_RISING>;
>  			allow-set-time;
>  		};
>  	};
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/qcom/pm8058.dtsi b/arch/arm/boot/dts/qcom/pm8058.dtsi
index 913a511719fa..3683d7b60918 100644
--- a/arch/arm/boot/dts/qcom/pm8058.dtsi
+++ b/arch/arm/boot/dts/qcom/pm8058.dtsi
@@ -12,7 +12,8 @@  pwrkey@1c {
 			compatible = "qcom,pm8058-pwrkey";
 			reg = <0x1c>;
 			interrupt-parent = <&pm8058>;
-			interrupts = <50 1>, <51 1>;
+			interrupts = <50 IRQ_TYPE_EDGE_RISING>,
+				     <51 IRQ_TYPE_EDGE_RISING>;
 			debounce = <15625>;
 			pull-up;
 		};
@@ -61,7 +62,8 @@  pm8058_keypad: keypad@148 {
 			compatible = "qcom,pm8058-keypad";
 			reg = <0x148>;
 			interrupt-parent = <&pm8058>;
-			interrupts = <74 1>, <75 1>;
+			interrupts = <74 IRQ_TYPE_EDGE_RISING>,
+				     <75 IRQ_TYPE_EDGE_RISING>;
 			debounce = <15>;
 			scan-delay = <32>;
 			row-hold = <91500>;
@@ -135,7 +137,7 @@  rtc@1e8 {
 			compatible = "qcom,pm8058-rtc";
 			reg = <0x1e8>;
 			interrupt-parent = <&pm8058>;
-			interrupts = <39 1>;
+			interrupts = <39 IRQ_TYPE_EDGE_RISING>;
 			allow-set-time;
 		};
 	};