OSDN Git Service

platform/x86: samsung-laptop: Move acpi_backlight=[vendor|native] quirks to ACPI...
authorHans de Goede <hdegoede@redhat.com>
Sat, 18 Jun 2022 17:01:05 +0000 (19:01 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 3 Sep 2022 10:17:27 +0000 (12:17 +0200)
commit8991d7d9add0d9a711db692458d950050b38307b
tree41dd0e9b0754c8d01ebdd7dd06713ce5717b07f3
parent1e3344d6f2b329ca064b3016bc33d7f33ed7ba0e
platform/x86: samsung-laptop: Move acpi_backlight=[vendor|native] quirks to ACPI video_detect.c

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.

Move all the acpi_backlight=[vendor|native] quirks from samsung-laptop to
drivers/acpi/video_detect.c .

Note the X360 -> acpi_backlight=native quirk is not moved because that
already was present in drivers/acpi/video_detect.c .

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/samsung-laptop.c