提交 13b9b64e 编写于 作者: B Beomho Seo 提交者: Kukjin Kim

ARM: dts: use macro in gpio keys for exynos3250 boards

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: NChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: NBeomho Seo <beomho.seo@samsung.com>
Signed-off-by: NKukjin Kim <kgene@kernel.org>
上级 19f0d87b
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
/dts-v1/; /dts-v1/;
#include "exynos3250.dtsi" #include "exynos3250.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Samsung Monk board"; model = "Samsung Monk board";
...@@ -37,7 +38,7 @@ ...@@ -37,7 +38,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
power_key { power_key {
gpios = <&gpx2 7 1>; gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
label = "power key"; label = "power key";
debounce-interval = <10>; debounce-interval = <10>;
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
/dts-v1/; /dts-v1/;
#include "exynos3250.dtsi" #include "exynos3250.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Samsung Rinato board"; model = "Samsung Rinato board";
...@@ -37,7 +38,7 @@ ...@@ -37,7 +38,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
power_key { power_key {
gpios = <&gpx2 7 1>; gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
label = "power key"; label = "power key";
debounce-interval = <10>; debounce-interval = <10>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册