ACPI: video: Add Apple GMUX brightness control detection
authorHans de Goede <hdegoede@redhat.com>
Sat, 4 Jun 2022 13:21:51 +0000 (15:21 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 3 Sep 2022 10:17:26 +0000 (12:17 +0200)
commit21245df307cbee9e04d5b4aac3fd04334f6b45dc
tree64d7d92713ffc3d551e64f8bbc52a48a7175684a
parentfe7aebb40d42bf8e830019d6f57c47cf7d85aa61
ACPI: video: Add Apple GMUX brightness control detection

On Apple laptops with an Apple GMUX using this for brightness control,
should take precedence of any other brightness control methods.

Add apple-gmux detection to acpi_video_get_backlight_type() using
the already existing apple_gmux_present() helper function.

This will allow removig the (ab)use of:

acpi_video_set_dmi_backlight_type(acpi_backlight_vendor);

Inside the apple-gmux driver.

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