ARM: dts: exynos: Use human-friendly symbols for interrupt flags in board sources
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 2 Jun 2017 18:13:45 +0000 (20:13 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 7 Jun 2017 18:51:24 +0000 (20:51 +0200)
Replace hard-coded values of interrupt flags with respective macros from
header to increase code readability.

Suggested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos3250-monk.dts
arch/arm/boot/dts/exynos3250-rinato.dts
arch/arm/boot/dts/exynos4210-origen.dts
arch/arm/boot/dts/exynos4210-trats.dts
arch/arm/boot/dts/exynos4412-odroid-common.dtsi
arch/arm/boot/dts/exynos4412-odroidx.dts
arch/arm/boot/dts/exynos4412-trats2.dts
arch/arm/boot/dts/exynos5420-peach-pit.dts
arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi
arch/arm/boot/dts/exynos5800-peach-pi.dts

index cccfe4b791d1c85f0fddb1cd73f5b77c7986cab8..accee81da266e3c1e9a3cb7e55998c658f1017a7 100644 (file)
@@ -67,7 +67,7 @@
                max77836: subpmic@25 {
                        compatible = "maxim,max77836";
                        interrupt-parent = <&gpx1>;
-                       interrupts = <5 0>;
+                       interrupts = <5 IRQ_TYPE_NONE>;
                        reg = <0x25>;
                        wakeup-source;
 
        s2mps14_pmic@66 {
                compatible = "samsung,s2mps14-pmic";
                interrupt-parent = <&gpx0>;
-               interrupts = <7 0>;
+               interrupts = <7 IRQ_TYPE_NONE>;
                reg = <0x66>;
                wakeup-source;
 
        fuelgauge@36 {
                compatible = "maxim,max77836-battery";
                interrupt-parent = <&gpx1>;
-               interrupts = <2 8>;
+               interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
                reg = <0x36>;
        };
 };
index c9f191ca7b9ccea04da9890aef08836388ab0549..118235b72e901484ec020f9d8272a4a559ace84c 100644 (file)
@@ -58,7 +58,7 @@
                max77836: subpmic@25 {
                        compatible = "maxim,max77836";
                        interrupt-parent = <&gpx1>;
-                       interrupts = <5 0>;
+                       interrupts = <5 IRQ_TYPE_NONE>;
                        reg = <0x25>;
                        wakeup-source;
 
        s2mps14_pmic@66 {
                compatible = "samsung,s2mps14-pmic";
                interrupt-parent = <&gpx0>;
-               interrupts = <7 0>;
+               interrupts = <7 IRQ_TYPE_NONE>;
                reg = <0x66>;
                wakeup-source;
 
        fuelgauge@36 {
                compatible = "maxim,max77836-battery";
                interrupt-parent = <&gpx1>;
-               interrupts = <2 8>;
+               interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
                reg = <0x36>;
        };
 };
index 312650e2450fbefbe2d1d07cf6b7f22fe696e942..084fcc5574ef97b329b49f242780e10ca55f5507 100644 (file)
                compatible = "maxim,max8997-pmic";
                reg = <0x66>;
                interrupt-parent = <&gpx0>;
-               interrupts = <4 0>, <3 0>;
+               interrupts = <4 IRQ_TYPE_NONE>, <3 IRQ_TYPE_NONE>;
 
                max8997,pmic-buck1-dvs-voltage = <1350000>;
                max8997,pmic-buck2-dvs-voltage = <1100000>;
index 1743ca850070969aac2571fefcbdacc735809d19..645feffb9239d2465782ea04989ce063b6ae2b97 100644 (file)
                compatible = "melfas,mms114";
                reg = <0x48>;
                interrupt-parent = <&gpx0>;
-               interrupts = <4 2>;
+               interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
                x-size = <720>;
                y-size = <1280>;
                avdd-supply = <&tsp_reg>;
 
                reg = <0x66>;
                interrupt-parent = <&gpx0>;
-               interrupts = <7 0>;
+               interrupts = <7 IRQ_TYPE_NONE>;
 
                max8997,pmic-buck1-uses-gpio-dvs;
                max8997,pmic-buck2-uses-gpio-dvs;
index 0f1ff792fe44e62ceab0b1668d2de0fed55fabd4..219d587c5a85059f9bd44ac69a794cae25a21bf7 100644 (file)
@@ -32,7 +32,7 @@
 
                power_key {
                        interrupt-parent = <&gpx1>;
-                       interrupts = <3 0>;
+                       interrupts = <3 IRQ_TYPE_NONE>;
                        gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_POWER>;
                        label = "power key";
        max77686: pmic@09 {
                compatible = "maxim,max77686";
                interrupt-parent = <&gpx3>;
-               interrupts = <2 0>;
+               interrupts = <2 IRQ_TYPE_NONE>;
                pinctrl-names = "default";
                pinctrl-0 = <&max77686_irq>;
                reg = <0x09>;
                compatible = "maxim,max98090";
                reg = <0x10>;
                interrupt-parent = <&gpx0>;
-               interrupts = <0 0>;
+               interrupts = <0 IRQ_TYPE_NONE>;
                clocks = <&i2s0 CLK_I2S_CDCLK>;
                clock-names = "mclk";
                #sound-dai-cells = <0>;
index 46b931eec22839a3980fe5981155967b7f0f8cfc..97882267ef093ded9a513e728ee097fdcd0efcbf 100644 (file)
@@ -44,7 +44,7 @@
 
                home_key {
                        interrupt-parent = <&gpx2>;
-                       interrupts = <2 0>;
+                       interrupts = <2 IRQ_TYPE_NONE>;
                        gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_HOME>;
                        label = "home key";
index 82221a00444d0859744525c2cc4cbc7ced10e05c..35e9b94b86b8d6853e919574fec8d486543061c8 100644 (file)
                max77693@66 {
                        compatible = "maxim,max77693";
                        interrupt-parent = <&gpx1>;
-                       interrupts = <5 2>;
+                       interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
                        reg = <0x66>;
 
                        regulators {
                        compatible = "capella,cm36651";
                        reg = <0x18>;
                        interrupt-parent = <&gpx0>;
-                       interrupts = <2 2>;
+                       interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
                        vled-supply = <&ps_als_reg>;
                };
        };
                compatible = "melfas,mms114";
                reg = <0x48>;
                interrupt-parent = <&gpm2>;
-               interrupts = <3 2>;
+               interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
                x-size = <720>;
                y-size = <1280>;
                avdd-supply = <&ldo23_reg>;
        max77686: max77686_pmic@09 {
                compatible = "maxim,max77686";
                interrupt-parent = <&gpx0>;
-               interrupts = <7 0>;
+               interrupts = <7 IRQ_TYPE_NONE>;
                reg = <0x09>;
                #clock-cells = <1>;
 
index 2cd65699a29cb3871931498ed49b9efc01ee6618..f9a75bfd3f2bfdc45575c5947f6107024d15e42a 100644 (file)
        max98090: codec@10 {
                compatible = "maxim,max98090";
                reg = <0x10>;
-               interrupts = <2 0>;
+               interrupts = <2 IRQ_TYPE_NONE>;
                interrupt-parent = <&gpx0>;
                pinctrl-names = "default";
                pinctrl-0 = <&max98090_irq>;
        cros_ec: cros-ec@0 {
                compatible = "google,cros-ec-spi";
                interrupt-parent = <&gpx1>;
-               interrupts = <5 0>;
+               interrupts = <5 IRQ_TYPE_NONE>;
                pinctrl-names = "default";
                pinctrl-0 = <&ec_spi_cs &ec_irq>;
                reg = <0>;
index 9493923ec652cfe1b934aed0303322dda15d646d..c0b85981c6bf741dadd6d9fd6e91ddd79e808c2f 100644 (file)
@@ -49,7 +49,7 @@
                compatible = "maxim,max98090";
                reg = <0x10>;
                interrupt-parent = <&gpx3>;
-               interrupts = <2 0>;
+               interrupts = <2 IRQ_TYPE_NONE>;
                clocks = <&i2s0 CLK_I2S_CDCLK>;
                clock-names = "mclk";
                #sound-dai-cells = <0>;
index ecf1c916e8fc343d9524d912a3f235db12cb7dbc..953dc8677dc888d21f4207d27de2d8268d812198 100644 (file)
        max98091: codec@10 {
                compatible = "maxim,max98091";
                reg = <0x10>;
-               interrupts = <2 0>;
+               interrupts = <2 IRQ_TYPE_NONE>;
                interrupt-parent = <&gpx0>;
                pinctrl-names = "default";
                pinctrl-0 = <&max98091_irq>;
        cros_ec: cros-ec@0 {
                compatible = "google,cros-ec-spi";
                interrupt-parent = <&gpx1>;
-               interrupts = <5 0>;
+               interrupts = <5 IRQ_TYPE_NONE>;
                pinctrl-names = "default";
                pinctrl-0 = <&ec_spi_cs &ec_irq>;
                reg = <0>;