HID: add battery quirk for Apple 2009_ISO keyboard
authorOrtwin Glück <odi@odi.ch>
Sun, 25 Nov 2012 14:08:34 +0000 (15:08 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 26 Nov 2012 13:25:24 +0000 (14:25 +0100)
Support battery capacity on another Apple wireless keyboard.

Signed-off-by: Ortwin Glück <odi@odi.ch>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c

index 10248cf548fcd09765d4dd5acda79e50b842d857..0887b52f804b00fa00175c493206139f2fea4a70 100644 (file)
@@ -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 },