From: "Ortwin Glück" <odi@odi.ch>
To: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
Jiri Kosina <jkosina@suse.cz>
Cc: stable@vger.kernel.org
Subject: [PATCH] HID: hid-input: battery quirk for Apple keyboard
Date: Sun, 25 Nov 2012 15:08:34 +0100 [thread overview]
Message-ID: <50B22662.4070503@odi.ch> (raw)
Support battery capacity on another Apple wireless
keyboard.
NB: most likely all other APPLE_ALU_WIRELESS_*
keyboards should be added as well.
Signed-off-by: Ortwin Glück <odi@odi.ch>
---
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,
WARNING: multiple messages have this Message-ID (diff)
From: "Ortwin Glück" <odi@odi.ch>
To: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
Jiri Kosina <jkosina@suse.cz>
Cc: stable@vger.kernel.org
Subject: [PATCH] HID: hid-input: battery quirk for Apple keyboard
Date: Sun, 25 Nov 2012 15:08:34 +0100 [thread overview]
Message-ID: <50B22662.4070503@odi.ch> (raw)
Support battery capacity on another Apple wireless
keyboard.
NB: most likely all other APPLE_ALU_WIRELESS_*
keyboards should be added as well.
Signed-off-by: Ortwin Gl�ck <odi@odi.ch>
---
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,
next reply other threads:[~2012-11-25 14:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-25 14:08 Ortwin Glück [this message]
2012-11-25 14:08 ` [PATCH] HID: hid-input: battery quirk for Apple keyboard Ortwin Glück
2012-11-25 14:13 ` devendra.aaru
2012-11-26 0:45 ` Ben Hutchings
2012-11-26 13:27 ` Jiri Kosina
2012-11-26 13:27 ` Jiri Kosina
-- strict thread matches above, loose matches on Subject: below --
2012-11-26 12:32 Ortwin Glück
2012-11-26 12:32 ` Ortwin Glück
2012-11-26 14:46 ` Greg KH
2012-11-26 14:46 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50B22662.4070503@odi.ch \
--to=odi@odi.ch \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.