media: v4l: Bring back array_size parameter to v4l2_find_nearest_size
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 21 Mar 2018 20:29:27 +0000 (16:29 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 4 Apr 2018 10:12:53 +0000 (06:12 -0400)
commitd2dc57b10ae2bd2e2e92ce26f2aaf24bcee17c53
treef59cdab6eda07f590b9d2c54408ac3b387ea32cd
parentdd5747fb9235d28ac2534e0ad4826a810a93e003
media: v4l: Bring back array_size parameter to v4l2_find_nearest_size

An older version of the driver patches were merged accidentally which
resulted in missing the array_size parameter that tells the length of the
array that contains the different supported sizes.

Bring it back to v4l2_find_nearest size and make the corresponding change
for the drivers using it as well.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov13858.c
drivers/media/i2c/ov5670.c
drivers/media/platform/vivid/vivid-vid-cap.c
include/media/v4l2-common.h