projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e31d24
)
drm/i2c/ch7006: Use helper to turn off CRTC
author
Lukas Wunner
<lukas@wunner.de>
Wed, 8 Jun 2016 16:47:27 +0000
(18:47 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 24 Jun 2016 06:49:37 +0000
(08:49 +0200)
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
drivers/gpu/drm/i2c/ch7006_drv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i2c/ch7006_drv.c
b/drivers/gpu/drm/i2c/ch7006_drv.c
index 0594c45f71646d7a512707d7f0b4f89a0875b30b..e9e8ae2ec06b2d52b404f10d96b8cebb7139cee0 100644
(file)
--- a/
drivers/gpu/drm/i2c/ch7006_drv.c
+++ b/
drivers/gpu/drm/i2c/ch7006_drv.c
@@
-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;