From: Darren Hart <dvhart@infradead.org>
To: Paul Bolle <pebolle@tiscali.nl>
Cc: Alex Hung <alex.hung@canonical.com>,
corentin.chary@gmail.com, platform-driver-x86@vger.kernel.org,
acpi4asus-user@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH][v2] asus-rbtn: new driver for asus radio button for Windows 8
Date: Thu, 25 Jun 2015 13:00:16 -0700 [thread overview]
Message-ID: <20150625200016.GB61540@vmdeb7> (raw)
In-Reply-To: <1435215484.4528.96.camel@tiscali.nl>
On Thu, Jun 25, 2015 at 08:58:04AM +0200, Paul Bolle wrote:
> On Wed, 2015-06-24 at 10:57 +0800, Alex Hung wrote:
> > --- /dev/null
> > +++ b/drivers/platform/x86/asus-rbtn.c
>
> > +MODULE_ALIAS("acpi*:ATK4001:*");
>
> This looked odd. It turned out this is the pattern that
> scripts/mod/file2alias.c::do_acpi_entry() creates.
>
> > +static const struct acpi_device_id asusrb_ids[] = {
> > + {"ATK4001", 0},
> > + {"", 0},
> > +};
>
> I think you should just put
> MODULE_DEVICE_TABLE(acpi, asusrb_ids);
>
> here, like all other drivers do, and drop the odd looking alias.
>
> All others drivers except drivers/platform/x86/hp-wireless.c, that is.
> (I noticed that you also wrote that driver.) It should just use
> MODULE_DEVICE_TABLE() too
Thanks for digging in to that, it raised an eyebrow for me as well, but I didn't
dig into it after finding at least one other instance of it.... :-)
--
Darren Hart
Intel Open Source Technology Center
next prev parent reply other threads:[~2015-06-25 20:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-24 2:57 [PATCH][v2] asus-rbtn: new driver for asus radio button for Windows 8 Alex Hung
2015-06-25 4:04 ` Darren Hart
2015-06-25 6:58 ` Paul Bolle
2015-06-25 20:00 ` Darren Hart [this message]
2015-06-26 14:56 ` Pali Rohár
2015-06-26 15:24 ` Alex Hung
2015-06-29 12:29 ` Pali Rohár
2015-06-30 8:38 ` Alex Hung
2015-06-30 8:58 ` Pali Rohár
2015-06-30 16:09 ` Alex Hung
2015-06-30 17:04 ` Pali Rohár
2015-07-01 11:48 ` Pali Rohár
2015-07-02 7:10 ` Alex Hung
2015-07-03 7:25 ` Pali Rohár
2015-07-06 1:35 ` Alex Hung
2015-07-06 22:43 ` Darren Hart
2015-07-07 14:25 ` Pali Rohár
2015-07-09 20:52 ` Darren Hart
2015-07-10 1:52 ` Alex Hung
2015-07-12 13:02 ` Corentin Chary
2015-06-30 16:17 ` Darren Hart
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=20150625200016.GB61540@vmdeb7 \
--to=dvhart@infradead.org \
--cc=acpi4asus-user@lists.sourceforge.net \
--cc=alex.hung@canonical.com \
--cc=corentin.chary@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pebolle@tiscali.nl \
--cc=platform-driver-x86@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.