lkml.org 
[lkml]   [2019]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v3 3/3] platform/x86: wmi: use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS()
Date


> -----Original Message-----
> From: Mattias Jacobsson <2pi@mok.nu>
> Sent: Thursday, January 31, 2019 9:24 AM
> To: Andy Shevchenko
> Cc: Limonciello, Mario; Darren Hart; Andy Shevchenko; Matthew Garrett; Pali
> Rohár; Platform Driver; Linux Kernel Mailing List; 2pi@mok.nu
> Subject: Re: [PATCH v3 3/3] platform/x86: wmi: use MODULE_DEVICE_TABLE()
> instead of MODULE_ALIAS()
>
>
> [EXTERNAL EMAIL]
>
> On 2019-01-30, Andy Shevchenko wrote:
> > On Wed, Jan 30, 2019 at 5:15 PM Mattias Jacobsson <2pi@mok.nu> wrote:
> > >
> > > WMI drivers can if they have specified an array of struct wmi_device_id
> > > use the MODULE_DEVICE_TABLE() macro to automatically generate the
> > > appropriate MODULE_ALIAS() output. Thus avoiding to keep both the array
> > > of struct wmi_device_id and the MODULE_ALIAS() declaration(s) in sync.
> > >
> > > Change all drivers that have specified an array of struct wmi_device_id
> > > to use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS().
> >
> > Please, split this per driver basis. It would help in maintenance phase...
>
> Sure.
>
> >
> > > Signed-off-by: Mattias Jacobsson <2pi@mok.nu>
> >
> > > Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
> >
> > ...and AFAIU Mario gave his tag only for Dell related stuff.
>
> Yes, that is correct. I applied the same reasoning as for the Acked-by:
> tag in [1]: "Acked-by: does not necessarily indicate acknowledgement of
> the entire patch.". Was that incorrect?
>
> Anyway, now that we are splitting the patch up;
>
> Mario: which files did you give the tag for? all involved *dell* files?

Yes.

>
> >
> > > ---
> > > drivers/platform/x86/dell-smbios-wmi.c | 2 +-
> > > drivers/platform/x86/dell-wmi-descriptor.c | 2 +-
> > > drivers/platform/x86/dell-wmi.c | 4 ++--
> > > drivers/platform/x86/huawei-wmi.c | 3 +--
> > > drivers/platform/x86/intel-wmi-thunderbolt.c | 2 +-
> > > drivers/platform/x86/wmi-bmof.c | 2 +-
> > > 6 files changed, 7 insertions(+), 8 deletions(-)
> > >
> > > diff --git a/drivers/platform/x86/dell-smbios-wmi.c
> b/drivers/platform/x86/dell-smbios-wmi.c
> > > index cf2229ece9ff..c3ed3c8c17b9 100644
> > > --- a/drivers/platform/x86/dell-smbios-wmi.c
> > > +++ b/drivers/platform/x86/dell-smbios-wmi.c
> > > @@ -277,4 +277,4 @@ void exit_dell_smbios_wmi(void)
> > > wmi_driver_unregister(&dell_smbios_wmi_driver);
> > > }
> > >
> > > -MODULE_ALIAS("wmi:" DELL_WMI_SMBIOS_GUID);
> > > +MODULE_DEVICE_TABLE(wmi, dell_smbios_wmi_id_table);
> > > diff --git a/drivers/platform/x86/dell-wmi-descriptor.c
> b/drivers/platform/x86/dell-wmi-descriptor.c
> > > index 072821aa47fc..14ab250b7d5a 100644
> > > --- a/drivers/platform/x86/dell-wmi-descriptor.c
> > > +++ b/drivers/platform/x86/dell-wmi-descriptor.c
> > > @@ -207,7 +207,7 @@ static struct wmi_driver dell_wmi_descriptor_driver = {
> > >
> > > module_wmi_driver(dell_wmi_descriptor_driver);
> > >
> > > -MODULE_ALIAS("wmi:" DELL_WMI_DESCRIPTOR_GUID);
> > > +MODULE_DEVICE_TABLE(wmi, dell_wmi_descriptor_id_table);
> > > MODULE_AUTHOR("Mario Limonciello <mario.limonciello@dell.com>");
> > > MODULE_DESCRIPTION("Dell WMI descriptor driver");
> > > MODULE_LICENSE("GPL");
> > > diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
> > > index 16c7f3d9a335..0602aba62b3f 100644
> > > --- a/drivers/platform/x86/dell-wmi.c
> > > +++ b/drivers/platform/x86/dell-wmi.c
> > > @@ -50,8 +50,6 @@ MODULE_LICENSE("GPL");
> > >
> > > static bool wmi_requires_smbios_request;
> > >
> > > -MODULE_ALIAS("wmi:"DELL_EVENT_GUID);
> > > -
> > > struct dell_wmi_priv {
> > > struct input_dev *input_dev;
> > > u32 interface_version;
> > > @@ -738,3 +736,5 @@ static void __exit dell_wmi_exit(void)
> > > wmi_driver_unregister(&dell_wmi_driver);
> > > }
> > > module_exit(dell_wmi_exit);
> > > +
> > > +MODULE_DEVICE_TABLE(wmi, dell_wmi_id_table);
> > > diff --git a/drivers/platform/x86/huawei-wmi.c
> b/drivers/platform/x86/huawei-wmi.c
> > > index 59872f87b741..52fcac5b393a 100644
> > > --- a/drivers/platform/x86/huawei-wmi.c
> > > +++ b/drivers/platform/x86/huawei-wmi.c
> > > @@ -201,8 +201,7 @@ static struct wmi_driver huawei_wmi_driver = {
> > >
> > > module_wmi_driver(huawei_wmi_driver);
> > >
> > > -MODULE_ALIAS("wmi:"WMI0_EVENT_GUID);
> > > -MODULE_ALIAS("wmi:"AMW0_EVENT_GUID);
> > > +MODULE_DEVICE_TABLE(wmi, huawei_wmi_id_table);
> > > MODULE_AUTHOR("Ayman Bagabas <ayman.bagabas@gmail.com>");
> > > MODULE_DESCRIPTION("Huawei WMI hotkeys");
> > > MODULE_LICENSE("GPL v2");
> > > diff --git a/drivers/platform/x86/intel-wmi-thunderbolt.c
> b/drivers/platform/x86/intel-wmi-thunderbolt.c
> > > index 9ded8e2af312..4dfa61434a76 100644
> > > --- a/drivers/platform/x86/intel-wmi-thunderbolt.c
> > > +++ b/drivers/platform/x86/intel-wmi-thunderbolt.c
> > > @@ -88,7 +88,7 @@ static struct wmi_driver intel_wmi_thunderbolt_driver = {
> > >
> > > module_wmi_driver(intel_wmi_thunderbolt_driver);
> > >
> > > -MODULE_ALIAS("wmi:" INTEL_WMI_THUNDERBOLT_GUID);
> > > +MODULE_DEVICE_TABLE(wmi, intel_wmi_thunderbolt_id_table);
> > > MODULE_AUTHOR("Mario Limonciello <mario.limonciello@dell.com>");
> > > MODULE_DESCRIPTION("Intel WMI Thunderbolt force power driver");
> > > MODULE_LICENSE("GPL v2");
> > > diff --git a/drivers/platform/x86/wmi-bmof.c b/drivers/platform/x86/wmi-
> bmof.c
> > > index c4530ba715e8..8751a13134be 100644
> > > --- a/drivers/platform/x86/wmi-bmof.c
> > > +++ b/drivers/platform/x86/wmi-bmof.c
> > > @@ -119,7 +119,7 @@ static struct wmi_driver wmi_bmof_driver = {
> > >
> > > module_wmi_driver(wmi_bmof_driver);
> > >
> > > -MODULE_ALIAS("wmi:" WMI_BMOF_GUID);
> > > +MODULE_DEVICE_TABLE(wmi, wmi_bmof_id_table);
> > > MODULE_AUTHOR("Andrew Lutomirski <luto@kernel.org>");
> > > MODULE_DESCRIPTION("WMI embedded Binary MOF driver");
> > > MODULE_LICENSE("GPL");
> > > --
> > > 2.20.1
> > >
> >
> >
> > --
> > With Best Regards,
> > Andy Shevchenko
>
> Thanks,
> Mattias

\
 
 \ /
  Last update: 2019-01-31 16:40    [W:0.072 / U:11.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site