|
@@ -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)
|
|
|
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");
|