]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: asus-wmi: Move acpi_backlight=native quirks to ACPI video_detect.c
authorHans de Goede <hdegoede@redhat.com>
Sat, 18 Jun 2022 15:44:58 +0000 (17:44 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 3 Sep 2022 10:17:27 +0000 (12:17 +0200)
commitaf69eee21846b1323eae146b26545978b94fb3f4
tree592a5e3ac81940eb4cc52c083781f1d05464b794
parente7cd3177f1772067be88bb142cc679de5da0cfc1
platform/x86: asus-wmi: Move acpi_backlight=native quirks to ACPI video_detect.c

Remove the asus-wmi quirk_entry.wmi_backlight_native quirk-flag, which
called acpi_video_set_dmi_backlight_type(acpi_backlight_native) and replace
it with acpi/video_detect.c video_detect_dmi_table[] entries using the
video_detect_force_native callback.

acpi_video_set_dmi_backlight_type() is troublesome because it may end up
getting called after other backlight drivers have already called
acpi_video_get_backlight_type() resulting in the other drivers
already being registered even though they should not.

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/acpi/video_detect.c
drivers/platform/x86/asus-nb-wmi.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/asus-wmi.h