drm/mtk: Move GEM BO to drm_framebuffer
authorDaniel Stone <daniels@collabora.com>
Fri, 18 May 2018 13:47:04 +0000 (14:47 +0100)
committerDaniel Stone <daniels@collabora.com>
Fri, 18 May 2018 14:56:16 +0000 (15:56 +0100)
commit81a073d14c7a46f6e7282a5ffc24f112ac5429ed
tree3e7b8b05bd52ca255319ead8c63d0b75c3fc1762
parentc734f496770801f97ae1a59607634b972b002cdf
drm/mtk: Move GEM BO to drm_framebuffer

Since drm_framebuffer can now store GEM objects directly, place them
there rather than in our own subclass. As this makes the framebuffer
create_handle and destroy functions the same as the GEM framebuffer
helper, we can reuse those.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180518134705.12533-2-daniels@collabora.com
drivers/gpu/drm/mediatek/mtk_drm_fb.c
drivers/gpu/drm/mediatek/mtk_drm_fb.h
drivers/gpu/drm/mediatek/mtk_drm_plane.c