projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a739a
)
ARM: dts: imx6q-gk802: Do not hardcode input codes
author
Fabio Estevam
<fabio.estevam@nxp.com>
Thu, 10 May 2018 02:08:09 +0000
(23:08 -0300)
committer
Shawn Guo
<shawnguo@kernel.org>
Mon, 14 May 2018 14:08:08 +0000
(22:08 +0800)
Instead of hardcoding the input codes we can use the symbol name for
better readability.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-gk802.dts
patch
|
blob
|
history
diff --git
a/arch/arm/boot/dts/imx6q-gk802.dts
b/arch/arm/boot/dts/imx6q-gk802.dts
index
0be3756
..
84d3540
100644
(file)
--- a/
arch/arm/boot/dts/imx6q-gk802.dts
+++ b/
arch/arm/boot/dts/imx6q-gk802.dts
@@
-8,6
+8,7
@@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
#include "imx6q.dtsi"
/ {
@@
-43,7
+44,7
@@
recovery-button {
label = "recovery";
gpios = <&gpio3 16 1>;
- linux,code = <
0x198>; /* KEY_RESTART */
+ linux,code = <
KEY_RESTART>;
wakeup-source;
};
};