diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2018-05-10 05:08:08 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2018-05-14 17:08:07 +0300 |
commit | 51a739a6358bc1dc52780b6686ac0a48a43cf319 (patch) | |
tree | 3f6ac648feca8e8d0656bb0e7a52fd4c035d3266 /arch/arm/boot/dts/imx53-smd.dts | |
parent | aee54d32318780b2f73685a051358bf6e34f426a (diff) | |
download | linux-51a739a6358bc1dc52780b6686ac0a48a43cf319.tar.xz |
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: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx53-smd.dts')
-rw-r--r-- | arch/arm/boot/dts/imx53-smd.dts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/imx53-smd.dts b/arch/arm/boot/dts/imx53-smd.dts index fd030128666c..705af5e84d26 100644 --- a/arch/arm/boot/dts/imx53-smd.dts +++ b/arch/arm/boot/dts/imx53-smd.dts @@ -11,6 +11,7 @@ */ /dts-v1/; +#include <dt-bindings/input/input.h> #include "imx53.dtsi" / { @@ -27,13 +28,13 @@ volume-up { label = "Volume Up"; gpios = <&gpio2 14 0>; - linux,code = <115>; /* KEY_VOLUMEUP */ + linux,code = <KEY_VOLUMEUP>; }; volume-down { label = "Volume Down"; gpios = <&gpio2 15 0>; - linux,code = <114>; /* KEY_VOLUMEDOWN */ + linux,code = <KEY_VOLUMEDOWN>; }; }; }; |