media: staging: media: atomisp: Remove unused function
authorAlex Dewar <alex.dewar90@gmail.com>
Sat, 17 Oct 2020 14:28:00 +0000 (16:28 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Mar 2021 16:45:25 +0000 (17:45 +0100)
The function ia_css_mipi_frame_specify() is not called from anywhere and
the comment above its declaration states that it should be removed when
there are no more users. So remove it.

Link: https://lore.kernel.org/linux-media/20201017142810.26967-1-alex.dewar90@gmail.com
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/ia_css_mipi.h
drivers/staging/media/atomisp/pci/sh_css_mipi.c

index 7b6d796d6ee059983d7846b92fea68472e949eb5..9e50e1c619be20538251ff4de8f8bc134a4e48ad 100644 (file)
 #include "ia_css_stream_format.h"
 #include "ia_css_input_port.h"
 
-/* Backward compatible for CSS API 2.0 only
- * TO BE REMOVED when all drivers move to CSS API 2.1.
- */
-/* @brief Specify a CSS MIPI frame buffer.
- *
- * @param[in]  size_mem_words  The frame size in memory words (32B).
- * @param[in]  contiguous      Allocate memory physically contiguously or not.
- * @return             The error code.
- *
- * \deprecated{Use ia_css_mipi_buffer_config instead.}
- *
- * Specifies a CSS MIPI frame buffer: size in memory words (32B).
- */
-int
-ia_css_mipi_frame_specify(const unsigned int   size_mem_words,
-                         const bool contiguous);
-
 /* @brief Register size of a CSS MIPI frame for check during capturing.
  *
  * @param[in]  port    CSI-2 port this check is registered.
index d5ae7f0b5864bb7acde86e6b8adb62c660960f5f..3f34cc81be87fe3255676c21b7728b38f75950c6 100644 (file)
 static u32
 ref_count_mipi_allocation[N_CSI_PORTS]; /* Initialized in mipi_init */
 
-int
-ia_css_mipi_frame_specify(const unsigned int size_mem_words,
-                         const bool contiguous) {
-       int err = 0;
-
-       my_css.size_mem_words = size_mem_words;
-       (void)contiguous;
-
-       return err;
-}
-
 /*
  * Check if a source port or TPG/PRBS ID is valid
  */