Skip to content

Commit

Permalink
[ARM] Orion: use better key codes for the TS-209/TS-409 buttons
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Michlmayr authored and Lennert Buytenhek committed Aug 9, 2008
1 parent 4a4e30a commit 28ca8c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-orion5x/ts209-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-orion5x/ts409-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 28ca8c8

Please sign in to comment.