OSDN Git Service

drm/mediatek: plane: Merge mtk_plane_enable into mtk_plane_atomic_update
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 4 Aug 2016 02:59:55 +0000 (10:59 +0800)
committerSean Paul <seanpaul@chromium.org>
Mon, 8 Aug 2016 18:20:01 +0000 (14:20 -0400)
commitf176cbf6f9407d363e72ba9bc2f7cd40853b4388
tree47890a495f8b98de707eefa6f61243af3bf7bcf1
parent903daff60fc5629d39ceb5f870afecdc477bcd6c
drm/mediatek: plane: Merge mtk_plane_enable into mtk_plane_atomic_update

The mtk_plane_enable is just called once by mtk_plane_atomic_update.
So, merge mtk_plane_enable into mtk_plane_atomic_update.

While we are here, also clean up the function a bit by using an fb local
variables.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1470279597-60453-6-git-send-email-bibby.hsieh@mediatek.com
drivers/gpu/drm/mediatek/mtk_drm_plane.c