msi-wmi: Port to new backlight interface selection API
Port the backlight selection logic to the new backlight interface selection API. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
2cc6c71779
commit
33a4edfba6
|
@ -29,6 +29,7 @@
|
|||
#include <linux/backlight.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/module.h>
|
||||
#include <acpi/video.h>
|
||||
|
||||
MODULE_AUTHOR("Thomas Renninger <trenn@suse.de>");
|
||||
MODULE_DESCRIPTION("MSI laptop WMI hotkeys driver");
|
||||
|
@ -320,7 +321,8 @@ static int __init msi_wmi_init(void)
|
|||
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();
|
||||
if (err) {
|
||||
pr_err("Unable to setup backlight device\n");
|
||||
|
|
Loading…
Reference in New Issue