From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <50B22662.4070503@odi.ch> Date: Sun, 25 Nov 2012 15:08:34 +0100 From: =?ISO-8859-1?Q?Ortwin_Gl=FCck?= MIME-Version: 1.0 To: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Jiri Kosina CC: stable@vger.kernel.org Subject: [PATCH] HID: hid-input: battery quirk for Apple keyboard Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: Support battery capacity on another Apple wireless keyboard. NB: most likely all other APPLE_ALU_WIRELESS_* keyboards should be added as well. Signed-off-by: Ortwin Gl�ck --- diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 5301006..b2ae097 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -299,6 +299,9 @@ static enum power_supply_property hidinput_battery_props[] = { static const struct hid_device_id hid_battery_quirks[] = { { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, + USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ISO), + HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE }, + { 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,