You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
dell-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: Pali Rohár <pali.rohar@gmail.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:
committed by
Rafael J. Wysocki
parent
ee4cfe28ca
commit
18bd769623
@@ -35,6 +35,7 @@
|
|||||||
#include <linux/acpi.h>
|
#include <linux/acpi.h>
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
#include <linux/dmi.h>
|
#include <linux/dmi.h>
|
||||||
|
#include <acpi/video.h>
|
||||||
|
|
||||||
MODULE_AUTHOR("Matthew Garrett <mjg@redhat.com>");
|
MODULE_AUTHOR("Matthew Garrett <mjg@redhat.com>");
|
||||||
MODULE_DESCRIPTION("Dell laptop WMI hotkeys driver");
|
MODULE_DESCRIPTION("Dell laptop WMI hotkeys driver");
|
||||||
@@ -397,7 +398,7 @@ static int __init dell_wmi_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
dmi_walk(find_hk_type, NULL);
|
dmi_walk(find_hk_type, NULL);
|
||||||
acpi_video = acpi_video_backlight_support();
|
acpi_video = acpi_video_get_backlight_type() != acpi_backlight_vendor;
|
||||||
|
|
||||||
err = dell_wmi_input_setup();
|
err = dell_wmi_input_setup();
|
||||||
if (err)
|
if (err)
|
||||||
|
|||||||
Reference in New Issue
Block a user