drm/rockchip: logo: attach crtc to drm state

In order to get the hdisplay of the display mode, attaching the
crtc to drm state.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I85909a414767b0bdd078edfa0a17df97b7612538
This commit is contained in:
Zhang Yubing
2022-05-05 16:08:06 +08:00
committed by Tao Huang
parent a2b12fb2b6
commit 0a196311ef

View File

@@ -709,6 +709,7 @@ static int setup_initial_state(struct drm_device *drm_dev,
goto error_conn;
}
crtc->state->state = state;
drm_mode_copy(&crtc_state->adjusted_mode, mode);
if (!match || !is_crtc_enabled) {
set->mode_changed = true;