Re: [linux-usb-devel] [PATCH] Enable HIDDEV interface for the SantaRosa MacBookPro IR receiver

Stelian Pop <[email protected]>
Newsgroups gmane.linux.ports.mactel.devel,gmane.linux.usb.devel
Message-ID <[email protected]>
Jiri Kosina a écrit :
> On Thu, 6 Sep 2007, Stelian Pop wrote:
> 
>> The infrared remote receiver found in the SantaRosa MacBookPro
>> laptops (MacBookPro3,1) need to be forced to expose a HIDDEV interface
>> so that lirc can access it using the 'macmini' driver.
>> Note that the IR receiver found in the older MacBook{,Pro}s doesn't need
>> the quirk, but the newer one does.
> 
> Hi Stelian,
> 
> probably HID_QUIRK_IGNORE would be better?

I don't think so. My understanding is that HID_QUIRK_IGNORE causes the 
device to be ignored by HID input _and_ HID dev.

What we want here for the IR receiver is to expose a HIDDEV interface 
(even if IS_INPUT_APPLICATION() is true...), and HID_QUIRK_HIDDEV is 
there exactly for that.

With this patch the device exposes both the HID dev and the HID input 
interfaces. The latter isn't useful but I didn't find a suitable QUIRK 
flag to force its removal.

Stelian.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.