aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-26 14:25:24 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-04 07:36:26 -0400
commit319dbc1b4ba9f84a1ce33ea8352a33d1eaea5deb (patch)
tree0ae408f866271b35e35bec6dd7d83caf019cb9b5
parent849267dfe0deaca6df41d02fe6f2989678932ac1 (diff)
media: staging: atomisp: get rid of an unused function
The function __need_realloc_mipi_buffer() is not used anywhere. Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c
index bbed1ed02074..b0e584b3cfc7 100644
--- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c
+++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c
@@ -1159,27 +1159,6 @@ void atomisp_css_mmu_invalidate_tlb(void)
1159 ia_css_mmu_invalidate_cache(); 1159 ia_css_mmu_invalidate_cache();
1160} 1160}
1161 1161
1162/*
1163 * Check whether currently running MIPI buffer size fulfill
1164 * the requirement of the stream to be run
1165 */
1166bool __need_realloc_mipi_buffer(struct atomisp_device *isp)
1167{
1168 unsigned int i;
1169
1170 for (i = 0; i < isp->num_of_streams; i++) {
1171 struct atomisp_sub_device *asd = &isp->asd[i];
1172
1173 if (asd->streaming !=
1174 ATOMISP_DEVICE_STREAMING_ENABLED)
1175 continue;
1176 if (asd->mipi_frame_size < isp->mipi_frame_size)
1177 return true;
1178 }
1179
1180 return false;
1181}
1182
1183int atomisp_css_start(struct atomisp_sub_device *asd, 1162int atomisp_css_start(struct atomisp_sub_device *asd,
1184 enum atomisp_css_pipe_id pipe_id, bool in_reset) 1163 enum atomisp_css_pipe_id pipe_id, bool in_reset)
1185{ 1164{