Commit cfe27415 authored by Lukas Wunner's avatar Lukas Wunner Committed by Daniel Vetter

drm/i2c/ch7006: Use helper to turn off CRTC

Use shiny new drm_crtc_force_disable() instead of open coding the same.
No functional change intended.

Cc: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Reviewed-by: default avatarFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/ec7d5c06e2a21dfb8f9fc9413d3e6df86d6aa1fb.1465392124.git.lukas@wunner.de
parent 3e31d24d
...@@ -361,13 +361,8 @@ static int ch7006_encoder_set_property(struct drm_encoder *encoder, ...@@ -361,13 +361,8 @@ static int ch7006_encoder_set_property(struct drm_encoder *encoder,
/* Disable the crtc to ensure a full modeset is /* Disable the crtc to ensure a full modeset is
* performed whenever it's turned on again. */ * performed whenever it's turned on again. */
if (crtc) { if (crtc)
struct drm_mode_set modeset = { drm_crtc_force_disable(crtc);
.crtc = crtc,
};
drm_mode_set_config_internal(&modeset);
}
} }
return 0; return 0;
......
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