提交 8cc17b59 编写于 作者: L Liu Ying 提交者: Philipp Zabel

drm/imx: ipuv3-crtc: Use the callback ->atomic_disable instead of ->disable

Now that the drm atomic core supports the callback ->atomic_disable,
we may replace the legacy one ->disable with it.

Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Peter Senna Tschudin <peter.senna@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: NLiu Ying <gnuiyl@gmail.com>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 448ae8ea
...@@ -60,7 +60,8 @@ static void ipu_crtc_enable(struct drm_crtc *crtc) ...@@ -60,7 +60,8 @@ static void ipu_crtc_enable(struct drm_crtc *crtc)
ipu_di_enable(ipu_crtc->di); ipu_di_enable(ipu_crtc->di);
} }
static void ipu_crtc_disable(struct drm_crtc *crtc) static void ipu_crtc_atomic_disable(struct drm_crtc *crtc,
struct drm_crtc_state *old_crtc_state)
{ {
struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc); struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent); struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent);
...@@ -241,7 +242,7 @@ static const struct drm_crtc_helper_funcs ipu_helper_funcs = { ...@@ -241,7 +242,7 @@ static const struct drm_crtc_helper_funcs ipu_helper_funcs = {
.mode_set_nofb = ipu_crtc_mode_set_nofb, .mode_set_nofb = ipu_crtc_mode_set_nofb,
.atomic_check = ipu_crtc_atomic_check, .atomic_check = ipu_crtc_atomic_check,
.atomic_begin = ipu_crtc_atomic_begin, .atomic_begin = ipu_crtc_atomic_begin,
.disable = ipu_crtc_disable, .atomic_disable = ipu_crtc_atomic_disable,
.enable = ipu_crtc_enable, .enable = ipu_crtc_enable,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册