Skip to content

Commit 4cc8541

Browse files
oglueckJiri Kosina
authored andcommitted
HID: add battery quirk for Apple 2009_ISO keyboard
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>
1 parent 436136c commit 4cc8541

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/hid/hid-input.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ static enum power_supply_property hidinput_battery_props[] = {
298298
#define HID_BATTERY_QUIRK_FEATURE (1 << 1) /* ask for feature report */
299299

300300
static const struct hid_device_id hid_battery_quirks[] = {
301+
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
302+
USB_DEVICE_ID_APPLE_ALU_WIRELESS_2009_ISO),
303+
HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },
301304
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
302305
USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ANSI),
303306
HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },

0 commit comments

Comments
 (0)