[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1c6498f0ba50440c98281531e98e221d@ausx13mpc120.AMER.DELL.COM>
Date: Mon, 21 Jan 2019 21:54:38 +0000
From: <Mario.Limonciello@...l.com>
To: <2pi@....nu>, <dvhart@...radead.org>, <andy@...radead.org>,
<mjg59@...f.ucam.org>, <pali.rohar@...il.com>
CC: <platform-driver-x86@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 3/3] platform/x86: wmi: use MODULE_DEVICE_TABLE() instead
of MODULE_ALIAS()
> -----Original Message-----
> From: Mattias Jacobsson <2pi@....nu>
> Sent: Saturday, January 19, 2019 5:56 AM
> To: Limonciello, Mario; dvhart@...radead.org; andy@...radead.org;
> mjg59@...f.ucam.org; pali.rohar@...il.com
> Cc: 2pi@....nu; platform-driver-x86@...r.kernel.org; linux-
> kernel@...r.kernel.org
> Subject: [PATCH 3/3] platform/x86: wmi: use MODULE_DEVICE_TABLE() instead of
> MODULE_ALIAS()
>
>
> [EXTERNAL EMAIL]
>
> 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.
>
> Change all driver that have specified an array of struct wmi_device_id
> to use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS().
>
> Signed-off-by: Mattias Jacobsson <2pi@....nu>
No concerns to the Dell pieces I'm on assuming other patches in series accepted.
Reviewed-by: Mario Limonciello <mario.limonciello@...l.com>
> ---
> 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@...l.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@...il.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@...l.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@...nel.org>");
> MODULE_DESCRIPTION("WMI embedded Binary MOF driver");
> MODULE_LICENSE("GPL");
> --
> 2.20.1
Powered by blists - more mailing lists