]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
drm/mediatek: Rename file mtk_drm_ddp to mtk_mutex
authorCK Hu <ck.hu@mediatek.com>
Tue, 21 Jul 2020 02:47:30 +0000 (10:47 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 4 Feb 2021 14:55:46 +0000 (22:55 +0800)
After mmsys routing function is moved out of mtk_drm_ddp.c, mtk_drm_ddp.c
has only mtk mutex function, so rename it to match the function in it.

Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/Makefile
drivers/gpu/drm/mediatek/mtk_drm_crtc.c
drivers/gpu/drm/mediatek/mtk_mutex.c [moved from drivers/gpu/drm/mediatek/mtk_drm_ddp.c with 99% similarity]
drivers/gpu/drm/mediatek/mtk_mutex.h [moved from drivers/gpu/drm/mediatek/mtk_drm_ddp.h with 92% similarity]

index a892edec5563e89dcb8d83c4c74a5bf0fe925b33..09979c4c340ab9758b1931d1a7b39b49a2bf5be9 100644 (file)
@@ -4,13 +4,13 @@ mediatek-drm-y := mtk_disp_color.o \
                  mtk_disp_ovl.o \
                  mtk_disp_rdma.o \
                  mtk_drm_crtc.o \
-                 mtk_drm_ddp.o \
                  mtk_drm_ddp_comp.o \
                  mtk_drm_drv.o \
                  mtk_drm_gem.o \
                  mtk_drm_plane.o \
                  mtk_dsi.o \
-                 mtk_dpi.o
+                 mtk_dpi.o \
+                 mtk_mutex.o
 
 obj-$(CONFIG_DRM_MEDIATEK) += mediatek-drm.o
 
index bf44a14ea0b69b689259e379ee395fd1bb8c007f..fd97b7d195e35289236fe028232d83fbbbef96dd 100644 (file)
 
 #include "mtk_drm_drv.h"
 #include "mtk_drm_crtc.h"
-#include "mtk_drm_ddp.h"
 #include "mtk_drm_ddp_comp.h"
 #include "mtk_drm_gem.h"
 #include "mtk_drm_plane.h"
+#include "mtk_mutex.h"
 
 /*
  * struct mtk_drm_crtc - MediaTek specific crtc structure.
similarity index 99%
rename from drivers/gpu/drm/mediatek/mtk_drm_ddp.c
rename to drivers/gpu/drm/mediatek/mtk_mutex.c
index 1f99db6b1a4223985c13cc850955aa24110b5493..1c8a253f478831f77c7505e72ab6d1070dda7b00 100644 (file)
@@ -10,8 +10,8 @@
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 
-#include "mtk_drm_ddp.h"
 #include "mtk_drm_ddp_comp.h"
+#include "mtk_mutex.h"
 
 #define MT2701_DISP_MUTEX0_MOD0                        0x2c
 #define MT2701_DISP_MUTEX0_SOF0                        0x30
similarity index 92%
rename from drivers/gpu/drm/mediatek/mtk_drm_ddp.h
rename to drivers/gpu/drm/mediatek/mtk_mutex.h
index a1ee21d15334caddd7169fe29670a8949a99da7c..3abcc20e88fbb03606ee106f5692a1ee0057fa30 100644 (file)
@@ -3,8 +3,8 @@
  * Copyright (c) 2015 MediaTek Inc.
  */
 
-#ifndef MTK_DRM_DDP_H
-#define MTK_DRM_DDP_H
+#ifndef MTK_MUTEX_H
+#define MTK_MUTEX_H
 
 struct regmap;
 struct device;
@@ -23,4 +23,4 @@ void mtk_disp_mutex_put(struct mtk_disp_mutex *mutex);
 void mtk_disp_mutex_acquire(struct mtk_disp_mutex *mutex);
 void mtk_disp_mutex_release(struct mtk_disp_mutex *mutex);
 
-#endif /* MTK_DRM_DDP_H */
+#endif /* MTK_MUTEX_H */