Re: [PATCH] Orion: use better key codes for the TS-209/TS-409 buttons | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Mon, Jul 21, 2008 at 11:49 PM, Martin Michlmayr <tbm@xxxxxxxxxx> wrote:
> 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@xxxxxxxxxx>
>
> --- 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 = {
>
> 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,
> --- a/arch/arm/mach-orion5x/ts409-setup.c
> +++ b/arch/arm/mach-orion5x/ts409-setup.c
> @@ -171,7 +171,7 @@ static struct i2c_board_info __initdata qnap_ts409_i2c_rtc = {
>
> 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,
Thanks for making this patch.
Acked-by: Byron Bradley <byron.bbradley@xxxxxxxxx>
--
Byron Bradley
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [Linux Arm] [Fedora ARM] [Gcc Help] [Git] [DCCP] [IETF Announce] [Security] [PDAs] [Linux] [Linux Book List] [Linux MIPS] [Yosemite Campsites] [Photos]
![]() |
|