]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/mediatek: add function to return RDMA layer number
authorStu Hsieh <stu.hsieh@mediatek.com>
Thu, 9 Aug 2018 02:15:46 +0000 (10:15 +0800)
committerCK Hu <ck.hu@mediatek.com>
Mon, 27 Aug 2018 03:24:37 +0000 (11:24 +0800)
This patch add function to return RDMA layer number

RDMA always has one layer.

Signed-off-by: Stu Hsieh <stu.hsieh@mediatek.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_disp_rdma.c

index 2d27e15445d26d7347fd1331ae8e4d2108d40c81..b0a5cffe345ab77f90e443ca88bfac52d62804a4 100644 (file)
@@ -192,6 +192,11 @@ static unsigned int rdma_fmt_convert(struct mtk_disp_rdma *rdma,
        }
 }
 
+static unsigned int mtk_rdma_layer_nr(struct mtk_ddp_comp *comp)
+{
+       return 1;
+}
+
 static void mtk_rdma_layer_config(struct mtk_ddp_comp *comp, unsigned int idx,
                                  struct mtk_plane_state *state)
 {
@@ -229,6 +234,7 @@ static const struct mtk_ddp_comp_funcs mtk_disp_rdma_funcs = {
        .stop = mtk_rdma_stop,
        .enable_vblank = mtk_rdma_enable_vblank,
        .disable_vblank = mtk_rdma_disable_vblank,
+       .layer_nr = mtk_rdma_layer_nr,
        .layer_config = mtk_rdma_layer_config,
 };