ACPI: video: Refactor acpi_video_get_backlight_type() a bit
authorHans de Goede <hdegoede@redhat.com>
Sat, 4 Jun 2022 12:38:24 +0000 (14:38 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 3 Sep 2022 10:17:26 +0000 (12:17 +0200)
commitb39be9f441f9d7320e6020bdf8ec1522d6c81d1e
tree75585ce6a2085a5a283f291516505e874d6fc527
parent3db2aeb121b9c54f52c399b8905c2bbbf201b7b5
ACPI: video: Refactor acpi_video_get_backlight_type() a bit

Refactor acpi_video_get_backlight_type() so that the heuristics /
detection steps are stricly in order of descending precedence.

Also move the comments describing the steps to when the various steps are
actually done, to avoid the comments getting out of sync with the code.

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