]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[ARM] Orion: use better key codes for the TS-209/TS-409 buttons
authorMartin Michlmayr <tbm@cyrius.com>
Mon, 21 Jul 2008 22:49:22 +0000 (01:49 +0300)
committerLennert Buytenhek <buytenh@marvell.com>
Sat, 9 Aug 2008 13:17:27 +0000 (15:17 +0200)
Use key codes for the buttons on the TS-209/TS-409 that make more
sense than the current values.

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
Acked-by: Byron Bradley <byron.bbradley@gmail.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
arch/arm/mach-orion5x/ts209-setup.c
arch/arm/mach-orion5x/ts409-setup.c

index 809132de31d213d2177e5e8de031a749f863e5fc..1bb7de8a262bb07995af5dcd5df84bbc25f55c60 100644 (file)
@@ -207,12 +207,12 @@ static struct i2c_board_info __initdata qnap_ts209_i2c_rtc = {
 
 static struct gpio_keys_button qnap_ts209_buttons[] = {
        {
-               .code           = KEY_RESTART,
+               .code           = KEY_COPY,
                .gpio           = QNAP_TS209_GPIO_KEY_MEDIA,
                .desc           = "USB Copy Button",
                .active_low     = 1,
        }, {
-               .code           = KEY_POWER,
+               .code           = KEY_RESTART,
                .gpio           = QNAP_TS209_GPIO_KEY_RESET,
                .desc           = "Reset Button",
                .active_low     = 1,
index 3133b73282e91fb2812b6e7a0b848583fb4ce553..57d460c01996e5a64ec4d1a4182b2ec773c05e28 100644 (file)
@@ -212,7 +212,7 @@ static struct platform_device ts409_leds = {
 
 static struct gpio_keys_button qnap_ts409_buttons[] = {
        {
-               .code           = KEY_RESTART,
+               .code           = KEY_COPY,
                .gpio           = QNAP_TS409_GPIO_KEY_MEDIA,
                .desc           = "USB Copy Button",
                .active_low     = 1,