@@ -732,8 +732,8 @@ static int __acpi_video_get_backlight_types(bool native)
return ACPI_BACKLIGHT_VIDEO;
}
- /* No ACPI video (old hw), use vendor specific fw methods. */
- return ACPI_BACKLIGHT_VENDOR;
+ /* No ACPI video, use native or vendor specific fw methods. */
+ return ACPI_BACKLIGHT_VENDOR | ACPI_BACKLIGHT_NATIVE;
}
int acpi_video_get_backlight_types(void)
@@ -76,7 +76,7 @@ static inline int acpi_video_get_edid(struct acpi_device *device, int type,
}
static inline int acpi_video_get_backlight_types(void)
{
- return ACPI_BACKLIGHT_VENDOR;
+ return ACPI_BACKLIGHT_VENDOR | ACPI_BACKLIGHT_NATIVE;
}
static inline bool acpi_video_backlight_use_native(void)
{
Commit 2600bfa3df99 ("ACPI: video: Add acpi_video_backlight_use_native() helper") and following commits made native backlight unavailable if CONFIG_ACPI_VIDEO is set and the backlight feature of ACPI video is unavailable, which broke the backlight functionality on Lenovo ThinkPad C13 Yoga Chromebook. Allow to fall back to native backlight in such cases. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> --- drivers/acpi/video_detect.c | 4 ++-- include/acpi/video.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)