drm/amd/display: use signal type to decide whether to set backlight
authorAnthony Koo <Anthony.Koo@amd.com>
Wed, 3 May 2017 19:19:07 +0000 (15:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:06:57 +0000 (18:06 -0400)
Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index 97cfd5bd3853f8dd2a8017894a46435beaad0e17..5d374cb8128b211f9f6d9579920af63cb8b979e0 100644 (file)
@@ -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++) {