Add ovl_adaptor get_format and get_num_formats component function. The two functions are needed for getting the supported format in mtk_plane_init(). Changes in v3: - modify for reviewer's comment in v2. - add mdp-rdma get supported format api for ovl_adaptor driver. Changes in v2: - remove change id Signed-off-by: Nancy.Lin <nancy.lin@xxxxxxxxxxxx> This series are based on the following patch: [1] [v8,1/3] drm/mediatek: Refactor pixel format logic - 20230309210416.1167020-2-greenjustin@xxxxxxxxxxxx Nancy.Lin (2): drm/mediatek: Add mdp_rdma get format function drm/mediatek: Add ovl_adaptor get format function drivers/gpu/drm/mediatek/mtk_disp_drv.h | 5 ++++ .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 14 +++++++++++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 ++ drivers/gpu/drm/mediatek/mtk_mdp_rdma.c | 24 +++++++++++++++++++ 4 files changed, 45 insertions(+) -- 2.18.0