Skip to content

Commit 56d4c99

Browse files
Hsiao Chien SungChun-Kuang Hu
authored andcommitted
drm/mediatek: Rename "mtk_drm_plane" to "mtk_plane"
Rename all "mtk_drm_plane" to "mtk_plane": - 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 b7919e8 commit 56d4c99

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/gpu/drm/mediatek/mtk_drm_plane.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ static bool mtk_plane_format_mod_supported(struct drm_plane *plane,
9393
return true;
9494
}
9595

96-
static void mtk_drm_plane_destroy_state(struct drm_plane *plane,
97-
struct drm_plane_state *state)
96+
static void mtk_plane_destroy_state(struct drm_plane *plane,
97+
struct drm_plane_state *state)
9898
{
9999
__drm_atomic_helper_plane_destroy_state(state);
100100
kfree(to_mtk_plane_state(state));
@@ -241,7 +241,7 @@ static const struct drm_plane_funcs mtk_plane_funcs = {
241241
.destroy = drm_plane_cleanup,
242242
.reset = mtk_plane_reset,
243243
.atomic_duplicate_state = mtk_plane_duplicate_state,
244-
.atomic_destroy_state = mtk_drm_plane_destroy_state,
244+
.atomic_destroy_state = mtk_plane_destroy_state,
245245
.format_mod_supported = mtk_plane_format_mod_supported,
246246
};
247247

drivers/gpu/drm/mediatek/mtk_drm_plane.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Author: CK Hu <[email protected]>
55
*/
66

7-
#ifndef _MTK_DRM_PLANE_H_
8-
#define _MTK_DRM_PLANE_H_
7+
#ifndef _MTK_PLANE_H_
8+
#define _MTK_PLANE_H_
99

1010
#include <drm/drm_crtc.h>
1111
#include <linux/types.h>

0 commit comments

Comments
 (0)