[media] v4l: subdev: Add pad config allocator and init
authorLaurent Pinchart <laurent.pinchart@linaro.org>
Fri, 24 Apr 2015 23:06:31 +0000 (20:06 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 Apr 2016 20:23:37 +0000 (17:23 -0300)
commit9b02cbb3ede89b5cd84bbe4ef493bd130d76b070
tree6684f6764138715156ea82e1555dc0ed834f3115
parent45b46879a785678e08953c8f97df945bf634e472
[media] v4l: subdev: Add pad config allocator and init

Add a new subdev operation to initialize a subdev pad config array, and
a helper function to allocate and initialize the array. This can be used
by bridge drivers to implement try format based on subdev pad
operations.

Signed-off-by: Laurent Pinchart <laurent.pinchart@linaro.org>
Acked-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h