Skip to content

Commit

Permalink
platform/x86: wmi: Mark simple WMI drivers as legacy-free
Browse files Browse the repository at this point in the history
The inspur_platform_profile driver and the xiaomi-wmi driver both
meet the requirements for modern WMI drivers, as they both do not
use the legacy GUID-based interface and can be safely instantiated
multiple times.

Mark them both as legacy-free using the no_singleton flag.

Compile-tested only.

Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240402143059.8456-1-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  • Loading branch information
Wer-Wolf authored and jwrdegoede committed Apr 8, 2024
1 parent 428a035 commit c347fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/platform/x86/inspur_platform_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ static struct wmi_driver inspur_wmi_driver = {
.id_table = inspur_wmi_id_table,
.probe = inspur_wmi_probe,
.remove = inspur_wmi_remove,
.no_singleton = true,
};

module_wmi_driver(inspur_wmi_driver);
Expand Down
1 change: 1 addition & 0 deletions drivers/platform/x86/xiaomi-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ static struct wmi_driver xiaomi_wmi_driver = {
.id_table = xiaomi_wmi_id_table,
.probe = xiaomi_wmi_probe,
.notify = xiaomi_wmi_notify,
.no_singleton = true,
};
module_wmi_driver(xiaomi_wmi_driver);

Expand Down

0 comments on commit c347fd4

Please sign in to comment.