drm/mediatek: Add mtk_dither_set_common() function
authorHsin-Yi Wang <hsinyi@chromium.org>
Fri, 29 Jan 2021 09:22:04 +0000 (17:22 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 4 Feb 2021 14:55:46 +0000 (22:55 +0800)
commita6b7c98afdcad0f149010ae028b24f2d0dc24cdb
tree8ee4754c345456c3268044a1bbe1900dfb851d7c
parente1e4f7fea37572f0ccf3887430e52c491e9accb6
drm/mediatek: Add mtk_dither_set_common() function

Current implementation of mtk_dither_set() cast dev data to
struct mtk_ddp_comp_dev. But other devices with different dev data
would also call this function.

Separate necessary parameters out so other device components (dither,
gamma) can call this function.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_drv.h
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c