提交 51a739a6 编写于 作者: F Fabio Estevam 提交者: Shawn Guo

ARM: dts: imx53-smd: Do not hardcode input codes

Instead of hardcoding the input codes we can use the symbol name for
better readability.
Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NShawn Guo <shawnguo@kernel.org>
上级 aee54d32
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
*/ */
/dts-v1/; /dts-v1/;
#include <dt-bindings/input/input.h>
#include "imx53.dtsi" #include "imx53.dtsi"
/ { / {
...@@ -27,13 +28,13 @@ ...@@ -27,13 +28,13 @@
volume-up { volume-up {
label = "Volume Up"; label = "Volume Up";
gpios = <&gpio2 14 0>; gpios = <&gpio2 14 0>;
linux,code = <115>; /* KEY_VOLUMEUP */ linux,code = <KEY_VOLUMEUP>;
}; };
volume-down { volume-down {
label = "Volume Down"; label = "Volume Down";
gpios = <&gpio2 15 0>; gpios = <&gpio2 15 0>;
linux,code = <114>; /* KEY_VOLUMEDOWN */ linux,code = <KEY_VOLUMEDOWN>;
}; };
}; };
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册