Skip to content

Commit b7919e8

Browse files
Hsiao Chien SungChun-Kuang Hu
authored andcommitted
drm/mediatek: Rename "mtk_drm_ddp_comp" to "mtk_ddp_comp"
Rename all "mtk_drm_ddp_comp" to "mtk_ddp_comp": - To align the naming rule - To reduce the code size Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: CK Hu <[email protected]> Signed-off-by: Hsiao Chien Sung <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 9e14987 commit b7919e8

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

drivers/gpu/drm/mediatek/mtk_drm_crtc.c

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ static void mtk_crtc_ddp_clk_disable(struct mtk_crtc *mtk_crtc)
278278
}
279279

280280
static
281-
struct mtk_ddp_comp *mtk_drm_ddp_comp_for_plane(struct drm_crtc *crtc,
282-
struct drm_plane *plane,
283-
unsigned int *local_layer)
281+
struct mtk_ddp_comp *mtk_ddp_comp_for_plane(struct drm_crtc *crtc,
282+
struct drm_plane *plane,
283+
unsigned int *local_layer)
284284
{
285285
struct mtk_crtc *mtk_crtc = to_mtk_crtc(crtc);
286286
struct mtk_ddp_comp *comp;
@@ -430,7 +430,7 @@ static int mtk_crtc_ddp_hw_init(struct mtk_crtc *mtk_crtc)
430430

431431
/* should not enable layer before crtc enabled */
432432
plane_state->pending.enable = false;
433-
comp = mtk_drm_ddp_comp_for_plane(crtc, plane, &local_layer);
433+
comp = mtk_ddp_comp_for_plane(crtc, plane, &local_layer);
434434
if (comp)
435435
mtk_ddp_comp_layer_config(comp, local_layer,
436436
plane_state, NULL);
@@ -521,8 +521,7 @@ static void mtk_crtc_ddp_config(struct drm_crtc *crtc,
521521
if (!plane_state->pending.config)
522522
continue;
523523

524-
comp = mtk_drm_ddp_comp_for_plane(crtc, plane,
525-
&local_layer);
524+
comp = mtk_ddp_comp_for_plane(crtc, plane, &local_layer);
526525

527526
if (comp)
528527
mtk_ddp_comp_layer_config(comp, local_layer,
@@ -546,8 +545,7 @@ static void mtk_crtc_ddp_config(struct drm_crtc *crtc,
546545
if (!plane_state->pending.async_config)
547546
continue;
548547

549-
comp = mtk_drm_ddp_comp_for_plane(crtc, plane,
550-
&local_layer);
548+
comp = mtk_ddp_comp_for_plane(crtc, plane, &local_layer);
551549

552550
if (comp)
553551
mtk_ddp_comp_layer_config(comp, local_layer,
@@ -711,7 +709,7 @@ int mtk_crtc_plane_check(struct drm_crtc *crtc, struct drm_plane *plane,
711709
unsigned int local_layer;
712710
struct mtk_ddp_comp *comp;
713711

714-
comp = mtk_drm_ddp_comp_for_plane(crtc, plane, &local_layer);
712+
comp = mtk_ddp_comp_for_plane(crtc, plane, &local_layer);
715713
if (comp)
716714
return mtk_ddp_comp_layer_check(comp, local_layer, state);
717715
return 0;

drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Copyright (c) 2015 MediaTek Inc.
44
*/
55

6-
#ifndef MTK_DRM_DDP_COMP_H
7-
#define MTK_DRM_DDP_COMP_H
6+
#ifndef MTK_DDP_COMP_H
7+
#define MTK_DDP_COMP_H
88

99
#include <linux/io.h>
1010
#include <linux/pm_runtime.h>
@@ -340,4 +340,4 @@ void mtk_ddp_write_relaxed(struct cmdq_pkt *cmdq_pkt, unsigned int value,
340340
void mtk_ddp_write_mask(struct cmdq_pkt *cmdq_pkt, unsigned int value,
341341
struct cmdq_client_reg *cmdq_reg, void __iomem *regs,
342342
unsigned int offset, unsigned int mask);
343-
#endif /* MTK_DRM_DDP_COMP_H */
343+
#endif /* MTK_DDP_COMP_H */

0 commit comments

Comments
 (0)