drm/msm: dpu: Simplify conn->state->connector to conn
Sean Paul
reviewerPATCH 1/1 drm/msm: dpu: Simplify conn->state->connector to conn
From: Sean Paul <[email protected]>
state->connector is just a backpointer to conn with the added risk of state being NULL.
Signed-off-by Sean Paul <[email protected]>
--- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +1 -1
@@ -1044,7 +1044,7 @@ static void dpu_encoder_virt_mode_set(struct drm_encoder *drm_enc, phys->hw_pp = dpu_enc->hw_pp[i]; phys->hw_ctl = hw_ctl[i]; - phys->connector = conn->state->connector; + phys->connector = conn;if (phys->ops.mode_set) phys->ops.mode_set (phys, mode, adj_mode); }
Signature · 6 lines
Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel