* [PATCH] HID: Fix the support for apple mini aluminium keyboard
@ 2009-04-28 14:23 Ulrich Dangel
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Dangel @ 2009-04-28 14:23 UTC (permalink / raw)
To: linux-input, jkosina; +Cc: linux-kernel, Ulrich Dangel
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);
--
1.6.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] HID: Fix the support for apple mini aluminium keyboard
@ 2009-04-29 10:05 Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2009-04-29 10:05 UTC (permalink / raw)
To: Ulrich Dangel; +Cc: linux-input, linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-29 10:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-28 14:23 [PATCH] HID: Fix the support for apple mini aluminium keyboard Ulrich Dangel
-- strict thread matches above, loose matches on Subject: below --
2009-04-29 10:05 Jiri Kosina
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).