From: Bastien Nocera <hadess@hadess.net>
To: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Cc: "Fabien André" <fabien.andre@gmail.com>,
linux-input <linux-input@vger.kernel.org>,
"Jarod Wilson" <jarod@redhat.com>,
"Jiri Kosina" <jkosina@suse.cz>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>
Subject: Re: [PATCH] Input: add appleir USB driver
Date: Mon, 19 Nov 2012 16:44:20 +0100 [thread overview]
Message-ID: <1353339860.2075.8.camel@localhost.localdomain> (raw)
In-Reply-To: <CAN+gG=FUDDd4TyN=7jp0zb1_kvURSVc3F+U9nujoj5fRf4+skA@mail.gmail.com>
On Mon, 2012-11-19 at 16:32 +0100, Benjamin Tissoires wrote:
> Hi Bastien,
>
> (adding the input and HID maintainers to the recipient list).
>
> On Thu, Nov 15, 2012 at 7:13 PM, Bastien Nocera <hadess@hadess.net> wrote:
> >
> > This driver was originally written by James McKenzie, updated by
> > Greg Kroah-Hartman, further updated by myself, with suspend support
> > added.
> >
> > More recent versions of the IR receiver are also supported through
> > a patch by Alex Karpenko. The patch also adds support for the 2nd
> > and 5th generation of the controller, and the menu key on newer
> > brushed metal remotes.
> >
> > Tested on a MacbookAir1,1
> >
> > Signed-off-by: Bastien Nocera <hadess@hadess.net>
> > ---
> >
> > Resend, as the original patch never made it. I cleaned up the patch a
> > bit further, and test compiled it, but didn't have a chance to test it
> > as I don't have a machine with that hardware available anymore.
>
> Fabien, in CC, gracefully accepted to test and to try to adapt this
> patch depending on the reviews. So we can ask for tests and changes!
\o/
> > diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
> > index 9d7a428..a4af9a9 100644
> > --- a/drivers/hid/hid-ids.h
> > +++ b/drivers/hid/hid-ids.h
> > @@ -137,8 +137,11 @@
> > #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ISO 0x0256
> > #define USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY 0x030a
> > #define USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY 0x030b
> > -#define USB_DEVICE_ID_APPLE_ATV_IRCONTROL 0x8241
>
> not sure we should change this define to an undocumented one.
I don't understand the comment here. The name is an artifact of where
the receiver was first seen and the Apple TV receiver is actually just
another model of this same receiver. So it makes sense to consolidate
below.
> > +#define USB_DEVICE_ID_APPLE_IRCONTROL 0x8240
> > +#define USB_DEVICE_ID_APPLE_IRCONTROL2 0x1440
> > +#define USB_DEVICE_ID_APPLE_IRCONTROL3 0x8241
> > #define USB_DEVICE_ID_APPLE_IRCONTROL4 0x8242
> > +#define USB_DEVICE_ID_APPLE_IRCONTROL5 0x8243
> > +struct appleir {
> > + struct input_dev *input_dev;
> > + unsigned short keymap[ARRAY_SIZE(appleir_key_table)];
>
> why this keymap is embedded in the struct? It's basically just a copy
> of appleir_key_table and it's not modified anytime.
It would be modified if you change the keymap.
Cheers
next prev parent reply other threads:[~2012-11-19 15:44 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 18:13 [PATCH] Input: add appleir USB driver Bastien Nocera
2012-11-19 15:32 ` Benjamin Tissoires
2012-11-19 15:44 ` Bastien Nocera [this message]
2012-11-19 16:01 ` Benjamin Tissoires
-- strict thread matches above, loose matches on Subject: below --
2010-09-10 15:19 Bastien Nocera
2010-04-21 13:51 Bastien Nocera
2010-04-17 21:45 Bastien Nocera
2010-04-16 16:19 Bastien Nocera
2010-04-17 8:12 ` Dmitry Torokhov
2010-04-17 21:44 ` Bastien Nocera
2010-04-18 19:43 ` Dmitry Torokhov
2010-04-18 19:49 ` Bastien Nocera
2010-04-18 20:19 ` Dmitry Torokhov
2010-04-19 0:31 ` Bastien Nocera
2010-04-19 7:28 ` Dmitry Torokhov
2010-04-19 10:08 ` Bastien Nocera
2010-04-21 6:31 ` Dmitry Torokhov
2010-04-21 14:06 ` Bastien Nocera
2010-04-19 9:22 ` Jiri Kosina
2010-04-19 9:31 ` Bastien Nocera
2010-04-19 10:00 ` Jiri Kosina
2010-04-19 10:14 ` Bastien Nocera
2010-04-19 11:08 ` Jiri Kosina
2010-04-21 20:09 ` Dmitry Torokhov
2010-09-03 16:58 ` Bastien Nocera
2010-02-08 16:32 Bastien Nocera
2010-01-20 14:17 Bastien Nocera
2010-01-27 15:40 ` Jiri Kosina
2010-02-01 13:52 ` Bastien Nocera
2010-02-03 15:54 ` Jiri Kosina
2010-02-08 16:32 ` Bastien Nocera
2010-02-10 12:52 ` Jiri Kosina
2010-02-11 18:18 ` Bastien Nocera
2008-05-14 22:15 Greg KH
2008-05-14 23:27 ` Matthew Garrett
2008-05-14 23:49 ` Greg KH
2008-05-15 6:20 ` Sitsofe Wheeler
2008-05-15 3:50 ` Dmitry Torokhov
2008-05-15 13:21 ` Tino Keitel
[not found] ` <20080515132108.GA9327-z7fNteJZwjmqk56C3691EA@public.gmane.org>
2008-05-15 13:45 ` Dmitry Torokhov
2008-05-15 17:49 ` Tino Keitel
[not found] ` <20080515174939.GA10881-z7fNteJZwjmqk56C3691EA@public.gmane.org>
2008-05-15 18:35 ` Dmitry Torokhov
2008-05-15 20:59 ` Tino Keitel
2008-05-16 7:19 ` Jiri Kosina
2008-05-16 7:26 ` Tino Keitel
2008-05-16 13:13 ` Dmitry Torokhov
2008-05-16 13:32 ` Tino Keitel
[not found] ` <20080516133234.GA10193-Zv899e0YUSaDCaQdYfVI6sM6rOWSkUom@public.gmane.org>
2008-05-16 13:53 ` Dmitry Torokhov
[not found] ` <20080516095218.ZZRA012-NG0XCrj25/nJrYCpivWRnl5pS2h4L8biXqFh9Ls21Oc@public.gmane.org>
2008-05-16 14:07 ` Tino Keitel
2008-05-15 18:40 ` Greg KH
[not found] ` <20080515184034.GB15231-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2008-05-15 20:59 ` Tino Keitel
[not found] ` <20080515205959.GA11683-z7fNteJZwjmqk56C3691EA@public.gmane.org>
2008-05-15 21:11 ` Greg KH
2008-05-15 23:27 ` Tino Keitel
2008-05-16 2:32 ` Greg KH
2008-05-16 5:44 ` Tino Keitel
[not found] ` <20080514221519.GA6575-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2008-05-15 13:40 ` Tino Keitel
2008-05-15 18:41 ` 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=1353339860.2075.8.camel@localhost.localdomain \
--to=hadess@hadess.net \
--cc=benjamin.tissoires@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=fabien.andre@gmail.com \
--cc=jarod@redhat.com \
--cc=jkosina@suse.cz \
--cc=linux-input@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).