media: atomisp: Remove 2 unused accelerator mode related functions
authorHans de Goede <hdegoede@redhat.com>
Tue, 25 Oct 2022 14:02:15 +0000 (15:02 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:19:55 +0000 (08:19 +0000)
Remove ia_css_pipe_get_acc_stage_desc() and sh_css_flush(),
after removing the accelerator /dev/video# node and related ioctls
these are no longer used.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/camera/pipe/interface/ia_css_pipe_stagedesc.h
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_stagedesc.c
drivers/staging/media/atomisp/pci/sh_css.c
drivers/staging/media/atomisp/pci/sh_css_internal.h

index 40c8145a07970cd1689dfeecb9bba0cd4976fae0..7a0c988d89ee011e0756aff8ea11c4e91b48f792 100644 (file)
@@ -38,11 +38,6 @@ void ia_css_pipe_get_firmwares_stage_desc(
     const struct ia_css_fw_info *fw,
     unsigned int mode);
 
-void ia_css_pipe_get_acc_stage_desc(
-    struct ia_css_pipeline_stage_desc *stage_desc,
-    struct ia_css_binary *binary,
-    struct ia_css_fw_info *fw);
-
 void ia_css_pipe_get_sp_func_stage_desc(
     struct ia_css_pipeline_stage_desc *stage_desc,
     struct ia_css_frame *out_frame,
index 82a24aabe8ce06d74fd687178aaad078243b4988..6c93fa1c683b14805c3e14de36730dfba560c1b9 100644 (file)
@@ -74,27 +74,6 @@ void ia_css_pipe_get_firmwares_stage_desc(
        stage_desc->vf_frame = vf_frame;
 }
 
-void ia_css_pipe_get_acc_stage_desc(
-    struct ia_css_pipeline_stage_desc *stage_desc,
-    struct ia_css_binary *binary,
-    struct ia_css_fw_info *fw)
-{
-       unsigned int i;
-
-       ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE,
-                           "ia_css_pipe_get_acc_stage_desc() enter:\n");
-       stage_desc->binary = binary;
-       stage_desc->firmware = fw;
-       stage_desc->sp_func = IA_CSS_PIPELINE_NO_FUNC;
-       stage_desc->max_input_width = 0;
-       stage_desc->mode = IA_CSS_BINARY_MODE_VF_PP;
-       stage_desc->in_frame = NULL;
-       for (i = 0; i < IA_CSS_BINARY_MAX_OUTPUT_PORTS; i++) {
-               stage_desc->out_frame[i] = NULL;
-       }
-       stage_desc->vf_frame = NULL;
-}
-
 void ia_css_pipe_get_sp_func_stage_desc(
     struct ia_css_pipeline_stage_desc *stage_desc,
     struct ia_css_frame *out_frame,
index 33348a43c1debcd40398dd0c26aabb015c007148..726cb7aa4ecd55a05e5262bdc0f022b04fb8b978 100644 (file)
@@ -1629,15 +1629,6 @@ ia_css_enable_isys_event_queue(bool enable)
        return 0;
 }
 
-/* For Acceleration API: Flush FW (shared buffer pointer) arguments */
-void
-sh_css_flush(struct ia_css_acc_fw *fw)
-{
-       ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "sh_css_flush() enter:\n");
-       if ((fw) && (my_css.flush))
-               my_css.flush(fw);
-}
-
 /*
  * Mapping sp threads. Currently, this is done when a stream is created and
  * pipelines are ready to be converted to sp pipelines. Be careful if you are
index 0441d4fec5516708277cb6496307e1b2e36dbf1e..d98f1323441eabec40225426e086b2929ed6404a 100644 (file)
@@ -897,9 +897,6 @@ sh_css_params_init(void);
 void
 sh_css_params_uninit(void);
 
-/* For Acceleration API: Flush FW (shared buffer pointer) arguments */
-void sh_css_flush(struct ia_css_acc_fw *fw);
-
 void
 sh_css_binary_args_reset(struct sh_css_binary_args *args);