media: atomisp: make sh_css_struct.h independent of ISP version
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 23 Apr 2020 06:38:49 +0000 (08:38 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 10:32:16 +0000 (12:32 +0200)
Use the same struct for both ISP2400 and ISP2401.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_struct.h

index 482c99b14ba95fed7306c47596c4dcfad0b188b0..81b9598ef8b7d4b240ef4156b72838919fc5a75f 100644 (file)
@@ -42,16 +42,17 @@ struct sh_css {
        struct ia_css_pipe            *all_pipes[IA_CSS_PIPELINE_NUM_MAX];
        void *(*malloc)(size_t bytes, bool zero_mem);
        void (*free)(void *ptr);
-#ifdef ISP2401
+       void (*flush)(struct ia_css_acc_fw *fw);
+
+/* ISP2401 */
        void *(*malloc_ex)(size_t bytes, bool zero_mem, const char *caller_func,
                           int caller_line);
        void (*free_ex)(void *ptr, const char *caller_func, int caller_line);
-#endif
-       void (*flush)(struct ia_css_acc_fw *fw);
-       bool                           check_system_idle;
-#ifndef ISP2401
+
+/* ISP2400 */
        bool stop_copy_preview;
-#endif
+
+       bool                           check_system_idle;
        unsigned int                   num_cont_raw_frames;
 #if defined(USE_INPUT_SYSTEM_VERSION_2) || defined(USE_INPUT_SYSTEM_VERSION_2401)
        unsigned int                   num_mipi_frames[N_CSI_PORTS];