The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	Vojtech Pavlik <vojtech@suse.cz>
Subject: Re: [PATCH] ALPS: Add support for 4 directions button on Acer Aspire 5720
Date: Tue, 10 Nov 2009 09:30:47 -0800	[thread overview]
Message-ID: <20091110173047.GC15263@core.coreip.homeip.net> (raw)
In-Reply-To: <1257847427.4921.13.camel@maxim-laptop>

Hi Maxim,

On Tue, Nov 10, 2009 at 12:03:47PM +0200, Maxim Levitsky wrote:
> @@ -483,8 +529,13 @@ int alps_init(struct psmouse *psmouse)
>  	}
>  
>  	if (priv->i->flags & (ALPS_FW_BK_1 | ALPS_FW_BK_2)) {
> -		dev1->keybit[BIT_WORD(BTN_FORWARD)] |= BIT_MASK(BTN_FORWARD);
> -		dev1->keybit[BIT_WORD(BTN_BACK)] |= BIT_MASK(BTN_BACK);
> +		dev1->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_0);
> +		dev1->keybit[BIT_WORD(BTN_1)] |= BIT_MASK(BTN_1);
> +	}
> +
> +	if (priv->i->flags & ALPS_EXTRA) {
> +		dev1->keybit[BIT_WORD(BTN_2)] |= BIT_MASK(BTN_2);
> +		dev1->keybit[BIT_WORD(BTN_3)] |= BIT_MASK(BTN_3);
>  	}
>  

Please don;t do this, you are breaking existing users. Add
ALPS_FOUR_BUTTONS flag and use it to report BTN_0..BTN_3 in your case.

I am also unsure if we need to do DMI entry, I'll try to dig original
submisison for that signature and see...

Thanks.

-- 
Dmitry

  reply	other threads:[~2009-11-10 17:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-31  2:10 ALPS touchpad with 4 directions button doesnt work as intended Maxim Levitsky
2009-11-02  5:38 ` Dmitry Torokhov
2009-11-02 17:20   ` Maxim Levitsky
2009-11-02 18:00     ` Dmitry Torokhov
     [not found]       ` <1257199967.3164.8.camel@localhost.localdomain>
2009-11-02 22:16         ` Maxim Levitsky
2009-11-02 22:25           ` Dmitry Torokhov
2009-11-02 23:21             ` Maxim Levitsky
2009-11-10  9:55 ` Maxim Levitsky
2009-11-10 10:03   ` [PATCH] ALPS: Add support for 4 directions button on Acer Aspire 5720 Maxim Levitsky
2009-11-10 17:30     ` Dmitry Torokhov [this message]
2009-11-11  9:09       ` [PATCH v2] " Maxim Levitsky
2009-11-15  8:53         ` Dmitry Torokhov
2009-11-16 18:05           ` Maxim Levitsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091110173047.GC15263@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maximlevitsky@gmail.com \
    --cc=vojtech@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox