aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/ov13858.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-02-23 04:50:14 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-21 11:18:52 -0400
commit95ce9c28601afc5da0c11792601ad32dd14cdd44 (patch)
tree8e30f3685fe841a55833a753453c92f6b98ce3d9 /drivers/media/i2c/ov13858.c
parent2525fdcb6e8211ee9dbc270a7f882fbfb6433b55 (diff)
downloadkernel_replicant_linux-95ce9c28601afc5da0c11792601ad32dd14cdd44.tar.gz
kernel_replicant_linux-95ce9c28601afc5da0c11792601ad32dd14cdd44.tar.bz2
kernel_replicant_linux-95ce9c28601afc5da0c11792601ad32dd14cdd44.zip
media: v4l: common: Add a function to obtain best size from a list
Add a function (as well as a helper macro) to obtain the best size in a list of device specific sizes. This helps writing drivers as well as aligns interface behaviour across drivers. The struct in which this information is contained in is typically specific to the driver, therefore the existing function v4l2_find_nearest_format() does not address the need. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/ov13858.c')
0 files changed, 0 insertions, 0 deletions