ACPI: video: Allow GPU drivers to report no panels
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 8 Dec 2022 16:42:05 +0000 (10:42 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Dec 2022 16:26:41 +0000 (17:26 +0100)
commit00a734104af7d878f1252d49eff9298785c6cbdc
treeaeb155c40134c3e41d2bc0f64276812d3cbc5880
parent057b40f43ce429a02e793adf3cfbf2446a19a38e
ACPI: video: Allow GPU drivers to report no panels

The current logic for the ACPI backlight detection will create
a backlight device if no native or vendor drivers have created
8 seconds after the system has booted if the ACPI tables
included backlight control methods.

If the GPU drivers have loaded, they may be able to report whether
any LCD panels were found.  Allow using this information to factor
in whether to enable the fallback logic for making an acpi_video0
backlight device.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_video.c
include/acpi/video.h