Commit 33a4edfb authored by Hans de Goede's avatar Hans de Goede Committed by Rafael J. Wysocki

msi-wmi: Port to new backlight interface selection API

Port the backlight selection logic to the new backlight interface
selection API.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarDarren Hart <dvhart@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 2cc6c717
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <linux/backlight.h> #include <linux/backlight.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/module.h> #include <linux/module.h>
#include <acpi/video.h>
MODULE_AUTHOR("Thomas Renninger <trenn@suse.de>"); MODULE_AUTHOR("Thomas Renninger <trenn@suse.de>");
MODULE_DESCRIPTION("MSI laptop WMI hotkeys driver"); MODULE_DESCRIPTION("MSI laptop WMI hotkeys driver");
...@@ -320,7 +321,8 @@ static int __init msi_wmi_init(void) ...@@ -320,7 +321,8 @@ static int __init msi_wmi_init(void)
break; break;
} }
if (wmi_has_guid(MSIWMI_BIOS_GUID) && !acpi_video_backlight_support()) { if (wmi_has_guid(MSIWMI_BIOS_GUID) &&
acpi_video_get_backlight_type() == acpi_backlight_vendor) {
err = msi_wmi_backlight_setup(); err = msi_wmi_backlight_setup();
if (err) { if (err) {
pr_err("Unable to setup backlight device\n"); pr_err("Unable to setup backlight device\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment