From: Anthony Koo Date: Wed, 3 May 2017 19:19:07 +0000 (-0400) Subject: drm/amd/display: use signal type to decide whether to set backlight X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c282ca3390d3327e0f8004d33acb9b022245a958;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: use signal type to decide whether to set backlight Signed-off-by: Anthony Koo Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index 97cfd5bd3853..5d374cb8128b 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -1389,7 +1389,7 @@ bool dc_link_set_backlight_level(const struct dc_link *dc_link, uint32_t level, dm_logger_write(link->ctx->logger, LOG_BACKLIGHT, "New Backlight level: %d (0x%X)\n", level, level); - if (link->device_tag.dev_id.device_type == DEVICE_TYPE_LCD) { + if (dc_is_embedded_signal(dc_link->connector_signal)) { if (stream != NULL) { core_stream = DC_STREAM_TO_CORE(stream); for (i = 0; i < MAX_PIPES; i++) {