Thread (5 messages) flat view 5 messages, 2 authors, 2012-07-04
STALE5194d

[Patch] Add Apple wireless keyboard to the quirk list

From: Daniel Nicoletti <hidden>
Date: 2012-05-28 21:12:00
Subsystem: hid core layer, the rest · Maintainers: Jiri Kosina, Benjamin Tissoires, Linus Torvalds

Hi,
some time ago I sent the patch to probe the battery status of devices,
but Jeremy improved it to go to hid-input and created a quirk list,
at that time I was quite busy with other projects that I didn't had the
chance to put my model on that list, so, now that the patch got upstream
I'm having I/O errors when reading that...

I'd also suggest to include all the other keyboard models between his and
mine, but I don't know if doing this without testing is ok.

I've tested and with this, it works just fine, thanks.

Daniel.
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 132b001..33d88d1 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -301,6 +301,9 @@ static const struct hid_device_id hid_battery_quirks[] = {
        { 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,
+                              USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI),
+         HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },
        {}
 };
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help