]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7091b3245191c7c17c8b13a07da88fdc2601d051
tree41dd0e9b0754c8d01ebdd7dd06713ce5717b07f3
parentaf69eee21846b1323eae146b26545978b94fb3f4
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