瀏覽代碼

HID: Fix the support for apple mini aluminium keyboard

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>
Ulrich Dangel 16 年之前
父節點
當前提交
2feaace40e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/hid/hid-apple.c

+ 1 - 1
drivers/hid/hid-apple.c

@@ -151,7 +151,7 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input,
 	if (fnmode) {
 	if (fnmode) {
 		int do_translate;
 		int do_translate;
 
 
-		trans = apple_find_translation((hid->product < 0x220 ||
+		trans = apple_find_translation((hid->product < 0x21d ||
 					hid->product >= 0x300) ?
 					hid->product >= 0x300) ?
 					powerbook_fn_keys : apple_fn_keys,
 					powerbook_fn_keys : apple_fn_keys,
 					usage->code);
 					usage->code);