diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-04-05 18:44:43 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-04-24 14:58:06 +0300 |
commit | 78172ad85b600b05100b7e0b67a60a3c3bfe6b5b (patch) | |
tree | bac0282ec08947c1dc94e285bbbf29d7d40ad976 /drivers/gpu/drm/tve200/tve200_display.c | |
parent | ccc3b2b3482c2c05d05fd2cfbf0c28d644b4b0c2 (diff) | |
download | linux-78172ad85b600b05100b7e0b67a60a3c3bfe6b5b.tar.xz |
drm/tve200: Use simple_display_pipe prepare_fb helper
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180405154449.23038-4-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/tve200/tve200_display.c')
-rw-r--r-- | drivers/gpu/drm/tve200/tve200_display.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/tve200/tve200_display.c b/drivers/gpu/drm/tve200/tve200_display.c index 108f3b2b5d25..e8723a2412a6 100644 --- a/drivers/gpu/drm/tve200/tve200_display.c +++ b/drivers/gpu/drm/tve200/tve200_display.c @@ -293,18 +293,12 @@ static void tve200_display_disable_vblank(struct drm_simple_display_pipe *pipe) 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 = { .check = tve200_display_check, .enable = tve200_display_enable, .disable = tve200_display_disable, .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, .disable_vblank = tve200_display_disable_vblank, }; |