From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulrich Dangel Subject: [PATCH] HID: Fix the support for apple mini aluminium keyboard Date: Tue, 28 Apr 2009 16:23:51 +0200 Message-ID: <1240928631-19320-1-git-send-email-uli@spamt.net> Return-path: Received: from mail.spamt.net ([78.46.151.67]:54403 "EHLO mail.spamt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752351AbZD1Oef (ORCPT ); Tue, 28 Apr 2009 10:34:35 -0400 Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: linux-input@vger.kernel.org, jkosina@suse.cz Cc: linux-kernel@vger.kernel.org, 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 --- 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