]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/mediatek: Modify dsi funcs to atomic operations
authorXinlei Lee <xinlei.lee@mediatek.com>
Fri, 20 May 2022 02:00:04 +0000 (10:00 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 6 Jun 2022 23:19:04 +0000 (07:19 +0800)
Because .enable & .disable are deprecated.
Use .atomic_enable & .atomic_disable instead.

Link: https://patchwork.kernel.org/project/linux-mediatek/patch/1653012007-11854-2-git-send-email-xinlei.lee@mediatek.com/
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Signed-off-by: Xinlei Lee <xinlei.lee@mediatek.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dsi.c

index d9f10a33e6fad5d537eb979ba379fdfa2b417572..6e7793f935dabca0d6cd4c4496c033b899fc069c 100644 (file)
@@ -763,14 +763,16 @@ static void mtk_dsi_bridge_mode_set(struct drm_bridge *bridge,
        drm_display_mode_to_videomode(adjusted, &dsi->vm);
 }
 
-static void mtk_dsi_bridge_disable(struct drm_bridge *bridge)
+static void mtk_dsi_bridge_atomic_disable(struct drm_bridge *bridge,
+                                         struct drm_bridge_state *old_bridge_state)
 {
        struct mtk_dsi *dsi = bridge_to_dsi(bridge);
 
        mtk_output_dsi_disable(dsi);
 }
 
-static void mtk_dsi_bridge_enable(struct drm_bridge *bridge)
+static void mtk_dsi_bridge_atomic_enable(struct drm_bridge *bridge,
+                                        struct drm_bridge_state *old_bridge_state)
 {
        struct mtk_dsi *dsi = bridge_to_dsi(bridge);
 
@@ -779,8 +781,8 @@ static void mtk_dsi_bridge_enable(struct drm_bridge *bridge)
 
 static const struct drm_bridge_funcs mtk_dsi_bridge_funcs = {
        .attach = mtk_dsi_bridge_attach,
-       .disable = mtk_dsi_bridge_disable,
-       .enable = mtk_dsi_bridge_enable,
+       .atomic_disable = mtk_dsi_bridge_atomic_disable,
+       .atomic_enable = mtk_dsi_bridge_atomic_enable,
        .mode_set = mtk_dsi_bridge_mode_set,
 };