Skip to content

Commit

Permalink
HID: Fix the support for apple mini aluminium keyboard
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Ulrich Dangel authored and Jiri Kosina committed Apr 29, 2009
1 parent 243b706 commit 2feaace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2feaace

Please sign in to comment.