aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-fimc/fimc-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/s5p-fimc/fimc-core.c')
-rw-r--r--drivers/media/video/s5p-fimc/fimc-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c
index c58dd9f8ce67..f6b9060a0c0f 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.c
+++ b/drivers/media/video/s5p-fimc/fimc-core.c
@@ -1007,14 +1007,14 @@ static int fimc_m2m_g_fmt_mplane(struct file *file, void *fh,
1007 * @mask: the color flags to match 1007 * @mask: the color flags to match
1008 * @index: offset in the fimc_formats array, ignored if negative 1008 * @index: offset in the fimc_formats array, ignored if negative
1009 */ 1009 */
1010struct fimc_fmt *fimc_find_format(u32 *pixelformat, u32 *mbus_code, 1010struct fimc_fmt *fimc_find_format(const u32 *pixelformat, const u32 *mbus_code,
1011 unsigned int mask, int index) 1011 unsigned int mask, int index)
1012{ 1012{
1013 struct fimc_fmt *fmt, *def_fmt = NULL; 1013 struct fimc_fmt *fmt, *def_fmt = NULL;
1014 unsigned int i; 1014 unsigned int i;
1015 int id = 0; 1015 int id = 0;
1016 1016
1017 if (index >= ARRAY_SIZE(fimc_formats)) 1017 if (index >= (int)ARRAY_SIZE(fimc_formats))
1018 return NULL; 1018 return NULL;
1019 1019
1020 for (i = 0; i < ARRAY_SIZE(fimc_formats); ++i) { 1020 for (i = 0; i < ARRAY_SIZE(fimc_formats); ++i) {