}
 
                hubp->mpcc_id = 0xf;
-               hubp->opp_id = 0xf;
+               hubp->opp_id = OPP_ID_INVALID;
        }
 }
 
        hubp1->hubp_shift = hubp_shift;
        hubp1->hubp_mask = hubp_mask;
        hubp1->base.inst = inst;
-       hubp1->base.opp_id = 0xf;
+       hubp1->base.opp_id = OPP_ID_INVALID;
        hubp1->base.mpcc_id = 0xf;
 }
 
 
                pipe_ctx->plane_res.dpp = dpp;
                pipe_ctx->plane_res.mpcc_inst = dpp->inst;
                hubp->mpcc_id = dpp->inst;
-               hubp->opp_id = 0xf;
+               hubp->opp_id = OPP_ID_INVALID;
                hubp->power_gated = false;
 
                dc->res_pool->opps[i]->mpc_tree_params.opp_id = dc->res_pool->opps[i]->inst;
                if (pipe_ctx->plane_state && !old_pipe_ctx->plane_state) {
                        if (old_pipe_ctx->stream_res.tg == tg &&
                            old_pipe_ctx->plane_res.hubp &&
-                           old_pipe_ctx->plane_res.hubp->opp_id != 0xf)
+                           old_pipe_ctx->plane_res.hubp->opp_id != OPP_ID_INVALID)
                                dcn10_disable_plane(dc, old_pipe_ctx);
                }
 
 
        hubp2->hubp_shift = hubp_shift;
        hubp2->hubp_mask = hubp_mask;
        hubp2->base.inst = inst;
-       hubp2->base.opp_id = 0xf;
+       hubp2->base.opp_id = OPP_ID_INVALID;
        hubp2->base.mpcc_id = 0xf;
 
        return true;
 
                pipe_ctx->plane_res.dpp = dpp;
                pipe_ctx->plane_res.mpcc_inst = dpp->inst;
                hubp->mpcc_id = dpp->inst;
-               hubp->opp_id = 0xf;
+               hubp->opp_id = OPP_ID_INVALID;
                hubp->power_gated = false;
                pipe_ctx->stream_res.opp = NULL;
 
                if (pipe_ctx->plane_state && !old_pipe_ctx->plane_state) {
                        if (old_pipe_ctx->stream_res.tg == tg &&
                            old_pipe_ctx->plane_res.hubp &&
-                           old_pipe_ctx->plane_res.hubp->opp_id != 0xf)
+                           old_pipe_ctx->plane_res.hubp->opp_id != OPP_ID_INVALID)
                                dcn20_disable_plane(dc, old_pipe_ctx);
                }
 
 
 
 #include "mem_input.h"
 
+#define OPP_ID_INVALID 0xf
+
 
 enum cursor_pitch {
        CURSOR_PITCH_64_PIXELS = 0,