From e19a763950fa3598edd488c9bf28c86e79262211 Mon Sep 17 00:00:00 2001
From: Philipp Zabel
Date: Wed, 23 Jul 2014 12:28:38 -0300
Subject: [PATCH] [media] coda: move coda driver into its own directory
The coda driver has grown significantly and will continue to grow.
Move the coda driver into its own directory so it can be split.
Rename coda.h to coda_regs.h as it contains the register defines.
Signed-off-by: Philipp Zabel
Signed-off-by: Kamil Debski
Signed-off-by: Mauro Carvalho Chehab
---
drivers/media/platform/Makefile | 2 +-
drivers/media/platform/coda/Makefile | 3 +++
drivers/media/platform/{coda.c => coda/coda-common.c} | 2 +-
drivers/media/platform/{coda.h => coda/coda_regs.h} | 0
4 files changed, 5 insertions(+), 2 deletions(-)
create mode 100644 drivers/media/platform/coda/Makefile
rename drivers/media/platform/{coda.c => coda/coda-common.c} (99%)
rename drivers/media/platform/{coda.h => coda/coda_regs.h} (100%)
diff --git a/drivers/media/platform/Makefile b/drivers/media/platform/Makefile
index e5269da91906..4ac4c91b4415 100644
--- a/drivers/media/platform/Makefile
+++ b/drivers/media/platform/Makefile
@@ -22,7 +22,7 @@ obj-$(CONFIG_VIDEO_MEM2MEM_TESTDEV) += mem2mem_testdev.o
obj-$(CONFIG_VIDEO_TI_VPE) += ti-vpe/
obj-$(CONFIG_VIDEO_MX2_EMMAPRP) += mx2_emmaprp.o
-obj-$(CONFIG_VIDEO_CODA) += coda.o
+obj-$(CONFIG_VIDEO_CODA) += coda/
obj-$(CONFIG_VIDEO_SH_VEU) += sh_veu.o
diff --git a/drivers/media/platform/coda/Makefile b/drivers/media/platform/coda/Makefile
new file mode 100644
index 000000000000..13d9ad6df51f
--- /dev/null
+++ b/drivers/media/platform/coda/Makefile
@@ -0,0 +1,3 @@
+coda-objs := coda-common.o
+
+obj-$(CONFIG_VIDEO_CODA) += coda.o
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda/coda-common.c
similarity index 99%
rename from drivers/media/platform/coda.c
rename to drivers/media/platform/coda/coda-common.c
index 594b0c7c4151..98784ee9d38a 100644
--- a/drivers/media/platform/coda.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -38,7 +38,7 @@
#include
#include
-#include "coda.h"
+#include "coda_regs.h"
#define CODA_NAME "coda"
diff --git a/drivers/media/platform/coda.h b/drivers/media/platform/coda/coda_regs.h
similarity index 100%
rename from drivers/media/platform/coda.h
rename to drivers/media/platform/coda/coda_regs.h
--
2.20.1