提交 78172ad8 编写于 作者: D Daniel Vetter

drm/tve200: Use simple_display_pipe prepare_fb helper

Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180405154449.23038-4-daniel.vetter@ffwll.ch
上级 ccc3b2b3
...@@ -293,18 +293,12 @@ static void tve200_display_disable_vblank(struct drm_simple_display_pipe *pipe) ...@@ -293,18 +293,12 @@ static void tve200_display_disable_vblank(struct drm_simple_display_pipe *pipe)
writel(0, priv->regs + TVE200_INT_EN); writel(0, priv->regs + TVE200_INT_EN);
} }
static int tve200_display_prepare_fb(struct drm_simple_display_pipe *pipe,
struct drm_plane_state *plane_state)
{
return drm_gem_fb_prepare_fb(&pipe->plane, plane_state);
}
static const struct drm_simple_display_pipe_funcs tve200_display_funcs = { static const struct drm_simple_display_pipe_funcs tve200_display_funcs = {
.check = tve200_display_check, .check = tve200_display_check,
.enable = tve200_display_enable, .enable = tve200_display_enable,
.disable = tve200_display_disable, .disable = tve200_display_disable,
.update = tve200_display_update, .update = tve200_display_update,
.prepare_fb = tve200_display_prepare_fb, .prepare_fb = drm_gem_fb_simple_display_pipe_prepare_fb,
.enable_vblank = tve200_display_enable_vblank, .enable_vblank = tve200_display_enable_vblank,
.disable_vblank = tve200_display_disable_vblank, .disable_vblank = tve200_display_disable_vblank,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册