From patchwork Wed Jul 4 13:40:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Nicoletti X-Patchwork-Id: 1156231 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id EAF4FDFFF7 for ; Wed, 4 Jul 2012 13:40:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753179Ab2GDNki (ORCPT ); Wed, 4 Jul 2012 09:40:38 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:60134 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753140Ab2GDNkf (ORCPT ); Wed, 4 Jul 2012 09:40:35 -0400 Received: by pbbrp8 with SMTP id rp8so11056664pbb.19 for ; Wed, 04 Jul 2012 06:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vsmqnZwov2b3e9+j8Rb7kX989UKnmOKa76lwoF2sJEs=; b=iie2nv2Dot40lpCv0/bDIL1ZjDS9biEJwvCFF8bK2tg1imWAbMV/RZ/So01jj0SqKc 0LYsYvbIZI/RXFUgxiugI/RgGYCLiJh0KNuFY7D7Cctz+6nLNEtZLgCBiJx2gcnyPt7x rr1VlJ8Tw0HGHBYOofir4Q3hodKchxrgjfe3KVHu/9W0ly6Iq8EfmmsbP4SK2t6YSVP0 6/NE7Pu65FzyFKKgCB2kPguDIjnjIiXljifvZAOLYvxCPvfigd0lE7pfW7PRIyvGMZWW zcvms+NdY3D9iH1LMM4aQzKePrCYpTtyV7eEs8nlXyzVn81BcKSC+5Aafi8WMMvYWLPi eKSw== MIME-Version: 1.0 Received: by 10.68.138.195 with SMTP id qs3mr19434976pbb.15.1341409234760; Wed, 04 Jul 2012 06:40:34 -0700 (PDT) Received: by 10.66.182.133 with HTTP; Wed, 4 Jul 2012 06:40:34 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 Jul 2012 10:40:34 -0300 Message-ID: Subject: Re: [Patch] Add Apple wireless keyboard to the quirk list From: Daniel Nicoletti To: Jiri Kosina Cc: linux-input@vger.kernel.org, vojtech@ucw.cz, Przemo Firszt , Jeremy Fitzhardinge Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 2012/6/5 Jiri Kosina > > I've tested and with this, it works just fine, thanks. > > Thanks for the patch. It's however missing your Signed-off-by: line, could > you please resend the patch including it, so that I could apply it? Ok sorry for the delay (too much stuff), I'm used to have commit access on the stuff I contribute so I didn't know this git format-patch thing, which someone pointed out to me. Should I use git send-email too? Thanks. From cc0225ce44f037f7ce9ecb876e65b5e8079d5665 Mon Sep 17 00:00:00 2001 From: Daniel Nicoletti Date: Wed, 4 Jul 2012 10:20:31 -0300 Subject: [PATCH 1/1] hid-input: Add Apple's Wireless keyboard (USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI), to the quirk list since it report wrong feature type and wrong percentage range. Signed-off-by: Daniel Nicoletti --- drivers/hid/hid-input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 132b001..33d88d1 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -301,6 +301,9 @@ static const struct hid_device_id hid_battery_quirks[] = { { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ANSI), HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE }, + { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, + USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI), + HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE }, {} };