media: atomisp: Remove atomisp_css_yuvpp_configure_viewfinder() function
authorHans de Goede <hdegoede@redhat.com>
Tue, 25 Oct 2022 14:05:20 +0000 (15:05 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:20:22 +0000 (08:20 +0000)
Remove atomisp_css_yuvpp_configure_viewfinder(), it is not used anywhere.

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/atomisp_compat.h
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c

index d1893a0deec133da1fa00dcb07ab41bca2d09082..f73801197dd76e1058752d1ececd42a9ad050c52 100644 (file)
@@ -257,13 +257,6 @@ int atomisp_css_yuvpp_configure_output(struct atomisp_sub_device *asd,
                                       unsigned int padded_width,
                                       enum ia_css_frame_format format);
 
-int atomisp_css_yuvpp_configure_viewfinder(
-    struct atomisp_sub_device *asd,
-    unsigned int stream_index,
-    unsigned int width, unsigned int height,
-    unsigned int min_width,
-    enum ia_css_frame_format format);
-
 int atomisp_css_yuvpp_get_output_frame_info(
     struct atomisp_sub_device *asd,
     unsigned int stream_index,
index c358515905c6290483aa21c55181a7f785bc8ca9..9d50aad15e09ce4fbe9422fed81c9779a57588c5 100644 (file)
@@ -2742,29 +2742,6 @@ int atomisp_css_yuvpp_configure_output(struct atomisp_sub_device *asd,
        return 0;
 }
 
-int atomisp_css_yuvpp_configure_viewfinder(
-    struct atomisp_sub_device *asd,
-    unsigned int stream_index,
-    unsigned int width, unsigned int height,
-    unsigned int min_width,
-    enum ia_css_frame_format format)
-{
-       struct atomisp_stream_env *stream_env =
-                   &asd->stream_env[stream_index];
-       enum ia_css_pipe_id pipe_id = IA_CSS_PIPE_ID_YUVPP;
-
-       stream_env->pipe_configs[pipe_id].mode =
-           __pipe_id_to_pipe_mode(asd, pipe_id);
-       stream_env->update_pipe[pipe_id] = true;
-
-       stream_env->pipe_configs[pipe_id].vf_output_info[0].res.width = width;
-       stream_env->pipe_configs[pipe_id].vf_output_info[0].res.height = height;
-       stream_env->pipe_configs[pipe_id].vf_output_info[0].format = format;
-       stream_env->pipe_configs[pipe_id].vf_output_info[0].padded_width =
-           min_width;
-       return 0;
-}
-
 int atomisp_css_yuvpp_get_output_frame_info(
     struct atomisp_sub_device *asd,
     unsigned int stream_index,