linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Kosina <jkosina@suse.cz>
To: Ulrich Dangel <uli@spamt.net>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] HID: Fix the support for apple mini aluminium keyboard
Date: Wed, 29 Apr 2009 12:05:40 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.00.0904291205210.5012@wotan.suse.de> (raw)

On Tue, 28 Apr 2009, Ulrich Dangel wrote:

> Quirks for the apple mini keyboard was recently added but keyboard
> was recognized as a powerbook keyboard. Adjusted boundary to the lowest
> product id for the apple mini keyboard to get the right translation.
> 
> Signed-off-by: Ulrich Dangel <uli@spamt.net>
> ---
>  drivers/hid/hid-apple.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c
> index 7359d9d..acbce57 100644
> --- a/drivers/hid/hid-apple.c
> +++ b/drivers/hid/hid-apple.c
> @@ -151,7 +151,7 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input,
>  	if (fnmode) {
>  		int do_translate;
>  
> -		trans = apple_find_translation((hid->product < 0x220 ||
> +		trans = apple_find_translation((hid->product < 0x21d ||
>  					hid->product >= 0x300) ?
>  					powerbook_fn_keys : apple_fn_keys,
>  					usage->code);

Applied, thanks Ulrich.

-- 
Jiri Kosina
SUSE Labs

             reply	other threads:[~2009-04-29 10:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-29 10:05 Jiri Kosina [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-04-28 14:23 [PATCH] HID: Fix the support for apple mini aluminium keyboard Ulrich Dangel

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=alpine.LNX.2.00.0904291205210.5012@wotan.suse.de \
    --to=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=uli@spamt.net \
    /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;
as well as URLs for NNTP newsgroup(s).