diff options
author | Stelian Pop <stelian@popies.net> | 2007-09-11 17:34:55 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2007-10-14 07:40:01 -0400 |
commit | 0ce91cf9ce23127932e8b5241d8a7d2bf62df017 (patch) | |
tree | b1d1ffb08fc10ea1cce3676c804b39718a11f863 /drivers/hid/hid-input.c | |
parent | c4025aded3eab4a50d5070d96ae3a46a25bdc59d (diff) |
HID: enable hiddev for the SantaRosa MacBookPro IR receiver
The infrared remote receiver found in the SantaRosa MacBookPro
laptops (MacBookPro3,1) need to be forced to expose a HIDDEV
interface (instead of HIDINPUT) so that lirc can access it using
the 'macmini' driver.
The patch below adds the required quirk for forcing the HIDDEV
interface to be activated (HID_QUIRK_HIDDEV) and introduces a new
quirk which forces the HIDINPUT interface to be ignored
(HID_QUIRK_IGNORE_HIDINPUT).
Note that Apple calls this receiver 'IRController4' (info taken
from Apple's driver Info.plist). Older Mac{Book,Mini,Pro}s seem
to all use the 'IRController1' device (USB id 05ac:8240) which
doesn't need those quirks.
Signed-off-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r-- | drivers/hid/hid-input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 36be431888fb..bd5a29fe85fc 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c | |||
@@ -1112,6 +1112,9 @@ int hidinput_connect(struct hid_device *hid) | |||
1112 | int i, j, k; | 1112 | int i, j, k; |
1113 | int max_report_type = HID_OUTPUT_REPORT; | 1113 | int max_report_type = HID_OUTPUT_REPORT; |
1114 | 1114 | ||
1115 | if (hid->quirks & HID_QUIRK_IGNORE_HIDINPUT) | ||
1116 | return -1; | ||
1117 | |||
1115 | INIT_LIST_HEAD(&hid->inputs); | 1118 | INIT_LIST_HEAD(&hid->inputs); |
1116 | 1119 | ||
1117 | for (i = 0; i < hid->maxcollection; i++) | 1120 | for (i = 0; i < hid->maxcollection; i++) |