Commit 26564be5 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/atomic-helper: Make crtc helper funcs optional

Allow drivers to call drm_atomic_helper_check_modeset() without
having the crtc helper funcs specified. i915 doesn't need those
anymore.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190708125325.16576-3-ville.syrjala@linux.intel.comReviewed-by: default avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Reviewed-by: default avatarJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
parent 4fb419b2
...@@ -471,7 +471,7 @@ mode_fixup(struct drm_atomic_state *state) ...@@ -471,7 +471,7 @@ mode_fixup(struct drm_atomic_state *state)
continue; continue;
funcs = crtc->helper_private; funcs = crtc->helper_private;
if (!funcs->mode_fixup) if (!funcs || !funcs->mode_fixup)
continue; continue;
ret = funcs->mode_fixup(crtc, &new_crtc_state->mode, ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment