Skip to content

Commit

Permalink
drm/i2c/ch7006: Use helper to turn off CRTC
Browse files Browse the repository at this point in the history
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: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/ec7d5c06e2a21dfb8f9fc9413d3e6df86d6aa1fb.1465392124.git.lukas@wunner.de
  • Loading branch information
Lukas Wunner authored and Daniel Vetter committed Jun 24, 2016
1 parent 3e31d24 commit cfe2741
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/gpu/drm/i2c/ch7006_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,8 @@ static int ch7006_encoder_set_property(struct drm_encoder *encoder,

/* Disable the crtc to ensure a full modeset is
* performed whenever it's turned on again. */
if (crtc) {
struct drm_mode_set modeset = {
.crtc = crtc,
};

drm_mode_set_config_internal(&modeset);
}
if (crtc)
drm_crtc_force_disable(crtc);
}

return 0;
Expand Down

0 comments on commit cfe2741

Please sign in to comment.