media: atomisp: make all file names unique at atomisp driver
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 29 Apr 2020 19:55:48 +0000 (21:55 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 10:32:19 +0000 (12:32 +0200)
The *system_*.h files contain ISP-specific definitions, and are
used everywhere.

While the best would be to get rid of those in favor of some
ISP-specific structs, a change like that would require lots
of changes.

So, instead, let's rename those files replacing them by new
ones with ISP ifdefs on it, in order to select between the
two different versions.

We shall later convert this to some abrstraction layer,
but this change should help to be able to build support for
either ISP2400 or ISP2401.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
17 files changed:
drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_global.h [new file with mode: 0644]
drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_local.h [new file with mode: 0644]
drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_private.h [new file with mode: 0644]
drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_public.h [new file with mode: 0644]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2400_input_system_local.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system_local.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2400_input_system_private.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system_private.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2400_input_system_public.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_include/host/input_system_public.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2400_system_global.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/system_global.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2400_system_local.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/system_local.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2401_input_system_global.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/input_system_global.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2401_input_system_local.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/host/input_system_local.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2401_input_system_private.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/host/input_system_private.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2401_system_global.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/system_global.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2401_system_local.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/host/system_local.h with 100% similarity]
drivers/staging/media/atomisp/pci/atomisp2/css2400/system_global.h [new file with mode: 0644]
drivers/staging/media/atomisp/pci/atomisp2/css2400/system_local.h [new file with mode: 0644]
drivers/staging/media/atomisp/pci/atomisp2/isp2400_input_system_global.h [moved from drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/input_system_global.h with 100% similarity]

diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_global.h b/drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_global.h
new file mode 100644 (file)
index 0000000..e75c2f2
--- /dev/null
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *    (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
+ */
+
+#ifdef ISP2401
+#  include "isp2401_input_system_global.h"
+#else
+#  include "isp2400_input_system_global.h"
+#endif
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_local.h b/drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_local.h
new file mode 100644 (file)
index 0000000..8533a1e
--- /dev/null
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *    (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
+ */
+
+#ifdef ISP2401
+#  include "isp2401_input_system_local.h"
+#else
+#  include "isp2400_input_system_local.h"
+#endif
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_private.h b/drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_private.h
new file mode 100644 (file)
index 0000000..69c63a7
--- /dev/null
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *    (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
+ */
+
+#ifdef ISP2401
+#  include "isp2401_input_system_private.h"
+#else
+#  include "isp2400_input_system_private.h"
+#endif
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_public.h b/drivers/staging/media/atomisp/pci/atomisp2/css2400/input_system_public.h
new file mode 100644 (file)
index 0000000..17682c8
--- /dev/null
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *    (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
+ */
+
+#ifndef ISP2401
+#  include "isp2400_input_system_public.h"
+#endif
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/system_global.h b/drivers/staging/media/atomisp/pci/atomisp2/css2400/system_global.h
new file mode 100644 (file)
index 0000000..7f833c1
--- /dev/null
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *    (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
+ */
+
+#ifdef ISP2401
+#  include "isp2401_system_global.h"
+#else
+#  include "isp2400_system_global.h"
+#endif
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/system_local.h b/drivers/staging/media/atomisp/pci/atomisp2/css2400/system_local.h
new file mode 100644 (file)
index 0000000..fbb5daa
--- /dev/null
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *    (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
+ */
+
+#ifdef ISP2401
+#  include "isp2401_system_local.h"
+#else
+#  include "isp2400_system_local.h"
+#endif