]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ACPI: video: Fix missing native backlight on Chromebooks
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Mon, 24 Oct 2022 14:12:10 +0000 (17:12 +0300)
committerHans de Goede <hdegoede@redhat.com>
Mon, 24 Oct 2022 15:02:13 +0000 (17:02 +0200)
commite9cf4d9b9a6fdb1df6401a59f5ac5d24006bfeae
treeb3d33eca90a42cd8e47cf50378dbe9485cd2b22e
parent555a68dd681b7437a2708001d465c85f6dfa6955
ACPI: video: Fix missing native backlight on Chromebooks

Chromebooks don't have backlight in ACPI table, they suppose to use
native backlight in this case. Check presence of the CrOS embedded
controller ACPI device and prefer the native backlight if EC found.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Fixes: 2600bfa3df99 ("ACPI: video: Add acpi_video_backlight_use_native() helper")
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20221024141210.67784-1-dmitry.osipenko@collabora.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/acpi/video_detect.c