2012-11-26 12:32:17

by Ortwin Glück

[permalink] [raw]
Subject: [PATCH] HID: hid-input: battery quirk for Apple keyboard

Support battery capacity on another Apple wireless
keyboard.

NB: most likely all other APPLE_ALU_WIRELESS_*
keyboards should be added as well.

Cc: stable <at> kernel.org
Signed-off-by: Ortwin Gl?ck <[email protected]>
---
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,


2012-11-26 14:44:50

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH] HID: hid-input: battery quirk for Apple keyboard

On Mon, Nov 26, 2012 at 01:32:07PM +0100, Ortwin Gl?ck wrote:
> Support battery capacity on another Apple wireless
> keyboard.
>
> NB: most likely all other APPLE_ALU_WIRELESS_*
> keyboards should be added as well.
>
> Cc: stable <at> kernel.org
> Signed-off-by: Ortwin Gl?ck <[email protected]>
> ---

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.

</formletter>