summaryrefslogtreecommitdiff
path: root/drivers/memstick
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-02-23 12:50:14 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-21 18:18:52 +0300
commit95ce9c28601afc5da0c11792601ad32dd14cdd44 (patch)
tree8e30f3685fe841a55833a753453c92f6b98ce3d9 /drivers/memstick
parent2525fdcb6e8211ee9dbc270a7f882fbfb6433b55 (diff)
downloadlinux-95ce9c28601afc5da0c11792601ad32dd14cdd44.tar.xz
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/memstick')
0 files changed, 0 insertions, 0 deletions