Google
  Web www.spinics.net

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]


Hi,

Martin Michlmayr <tbm@xxxxxxxxxx> [20080722 01:49:22 +0300]:
>
> 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,
> 
Whilst tinkering with that section I'm guessing it is only time before 
Russell repeats himself :)

http://marc.info/?l=linux-arm-kernel&m=121274354900568&w=2

Cheers

Alex

-- 
 ______________________________________
/ A journey of a thousand miles begins \
\ with a cash advance.                 /
 --------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------
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]

Add to Google Google PageRank Checking tool