Skip to content

Commit

Permalink
media: staging: atomisp: get rid of an unused function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 4, 2018
1 parent 849267d commit 319dbc1
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_css20.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,27 +1159,6 @@ void atomisp_css_mmu_invalidate_tlb(void)
ia_css_mmu_invalidate_cache();
}

/*
* Check whether currently running MIPI buffer size fulfill
* the requirement of the stream to be run
*/
bool __need_realloc_mipi_buffer(struct atomisp_device *isp)
{
unsigned int i;

for (i = 0; i < isp->num_of_streams; i++) {
struct atomisp_sub_device *asd = &isp->asd[i];

if (asd->streaming !=
ATOMISP_DEVICE_STREAMING_ENABLED)
continue;
if (asd->mipi_frame_size < isp->mipi_frame_size)
return true;
}

return false;
}

int atomisp_css_start(struct atomisp_sub_device *asd,
enum atomisp_css_pipe_id pipe_id, bool in_reset)
{
Expand Down

0 comments on commit 319dbc1

Please sign in to comment.