ARM: dts: use macro in gpio keys for exynos3250 boards
authorBeomho Seo <beomho.seo@samsung.com>
Mon, 12 Jan 2015 09:00:15 +0000 (18:00 +0900)
committerKukjin Kim <kgene@kernel.org>
Mon, 12 Jan 2015 09:03:30 +0000 (18:03 +0900)
This patch replaces number by macro in gpio keys for exynos3250 boards.

Cc: Youngjun Cho <yj44.cho@samsung.com>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/boot/dts/exynos3250-monk.dts
arch/arm/boot/dts/exynos3250-rinato.dts

index 2431b81..5e4a471 100644 (file)
@@ -15,6 +15,7 @@
 /dts-v1/;
 #include "exynos3250.dtsi"
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Samsung Monk board";
@@ -37,7 +38,7 @@
                compatible = "gpio-keys";
 
                power_key {
-                       gpios = <&gpx2 7 1>;
+                       gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_POWER>;
                        label = "power key";
                        debounce-interval = <10>;
index a2cbc6d..0c65155 100644 (file)
@@ -15,6 +15,7 @@
 /dts-v1/;
 #include "exynos3250.dtsi"
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Samsung Rinato board";
@@ -37,7 +38,7 @@
                compatible = "gpio-keys";
 
                power_key {
-                       gpios = <&gpx2 7 1>;
+                       gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_POWER>;
                        label = "power key";
                        debounce-interval = <10>;