diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2008-07-21 18:49:22 -0400 |
---|---|---|
committer | Lennert Buytenhek <buytenh@marvell.com> | 2008-08-09 09:17:27 -0400 |
commit | 28ca8c802f71283d610656a207f3325c09e4585e (patch) | |
tree | cc9839cc328f573f6e648bafc4d720dfb21b1bcb /arch/arm/mach-orion5x | |
parent | 4a4e30afefbfd069ef09de3514cce4886e83ff10 (diff) |
[ARM] Orion: use better key codes for the TS-209/TS-409 buttons
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>
Diffstat (limited to 'arch/arm/mach-orion5x')
-rw-r--r-- | arch/arm/mach-orion5x/ts209-setup.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/ts409-setup.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-orion5x/ts209-setup.c b/arch/arm/mach-orion5x/ts209-setup.c index 809132de31d2..1bb7de8a262b 100644 --- a/arch/arm/mach-orion5x/ts209-setup.c +++ b/arch/arm/mach-orion5x/ts209-setup.c | |||
@@ -207,12 +207,12 @@ static struct i2c_board_info __initdata qnap_ts209_i2c_rtc = { | |||
207 | 207 | ||
208 | static struct gpio_keys_button qnap_ts209_buttons[] = { | 208 | static struct gpio_keys_button qnap_ts209_buttons[] = { |
209 | { | 209 | { |
210 | .code = KEY_RESTART, | 210 | .code = KEY_COPY, |
211 | .gpio = QNAP_TS209_GPIO_KEY_MEDIA, | 211 | .gpio = QNAP_TS209_GPIO_KEY_MEDIA, |
212 | .desc = "USB Copy Button", | 212 | .desc = "USB Copy Button", |
213 | .active_low = 1, | 213 | .active_low = 1, |
214 | }, { | 214 | }, { |
215 | .code = KEY_POWER, | 215 | .code = KEY_RESTART, |
216 | .gpio = QNAP_TS209_GPIO_KEY_RESET, | 216 | .gpio = QNAP_TS209_GPIO_KEY_RESET, |
217 | .desc = "Reset Button", | 217 | .desc = "Reset Button", |
218 | .active_low = 1, | 218 | .active_low = 1, |
diff --git a/arch/arm/mach-orion5x/ts409-setup.c b/arch/arm/mach-orion5x/ts409-setup.c index 3133b73282e9..57d460c01996 100644 --- a/arch/arm/mach-orion5x/ts409-setup.c +++ b/arch/arm/mach-orion5x/ts409-setup.c | |||
@@ -212,7 +212,7 @@ static struct platform_device ts409_leds = { | |||
212 | 212 | ||
213 | static struct gpio_keys_button qnap_ts409_buttons[] = { | 213 | static struct gpio_keys_button qnap_ts409_buttons[] = { |
214 | { | 214 | { |
215 | .code = KEY_RESTART, | 215 | .code = KEY_COPY, |
216 | .gpio = QNAP_TS409_GPIO_KEY_MEDIA, | 216 | .gpio = QNAP_TS409_GPIO_KEY_MEDIA, |
217 | .desc = "USB Copy Button", | 217 | .desc = "USB Copy Button", |
218 | .active_low = 1, | 218 | .active_low = 1, |