]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
drm/amd/display: define DC_LOGGER for logger
[linux.git] / drivers / gpu / drm / amd / display / dc / dce / dce_clocks.c
index 654dcc6df97db0f6fb999c4167cb1f4154b7b269..78e6beb6cf268994abe3bb312c4c7f3fb35938d7 100644 (file)
@@ -49,6 +49,8 @@
 
 #define CTX \
        clk_dce->base.ctx
+#define DC_LOGGER \
+       clk->ctx->logger
 
 /* Max clock values for each state indexed by "enum clocks_state": */
 static const struct state_dependent_clocks dce80_max_clks_by_state[] = {
@@ -292,8 +294,7 @@ static enum dm_pp_clocks_state dce_get_required_clocks_state(
 
        low_req_clk = i + 1;
        if (low_req_clk > clk->max_clks_state) {
-               DC_LOG_WARNING(clk->ctx->logger,
-                               "%s: clocks unsupported disp_clk %d pix_clk %d",
+               DC_LOG_WARNING("%s: clocks unsupported disp_clk %d pix_clk %d",
                                __func__,
                                req_clocks->display_clk_khz,
                                req_clocks->pixel_clk_khz);
@@ -312,8 +313,7 @@ static bool dce_clock_set_min_clocks_state(
 
        if (clocks_state > clk->max_clks_state) {
                /*Requested state exceeds max supported state.*/
-               DC_LOG_WARNING(clk->ctx->logger,
-                               "Requested state exceeds max supported state");
+               DC_LOG_WARNING("Requested state exceeds max supported state");
                return false;
        } else if (clocks_state == clk->cur_min_clks_state) {
                /*if we're trying to set the same state, we can just return