Skip to contentSkip to conversation

HID: Fix the support for apple mini aluminium keyboard

PATCH New Ulrich Dangel 1 participant 1 message Apr 28, 2009 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/hid/hid-apple.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hid/hid-apple.c +1 -1
index 7359d9d..acbce57 100644
@@ -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);
Signature · 1 line
1.6.2.1