From: Ortwin Glück Date: Sun, 25 Nov 2012 14:08:34 +0000 (+0100) Subject: HID: add battery quirk for Apple 2009_ISO keyboard X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4cc8541782140e9ccbece5c8ac367fbf659b16d9;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git HID: add battery quirk for Apple 2009_ISO keyboard Support battery capacity on another Apple wireless keyboard. Signed-off-by: Ortwin Glück Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 10248cf548fc..0887b52f804b 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -298,6 +298,9 @@ static enum power_supply_property hidinput_battery_props[] = { #define HID_BATTERY_QUIRK_FEATURE (1 << 1) /* ask for feature report */ 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 },