media: v4l: fwnode: Let the caller provide V4L2 fwnode endpoint
authorSakari Ailus <sakari.ailus@linux.intel.com>
Sat, 2 Jun 2018 16:19:35 +0000 (12:19 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 4 Oct 2018 20:08:09 +0000 (16:08 -0400)
commit6970d37cc97d77189d775fd16d47b2ac87d0e757
treef8731768cc5c16db6fe1625a74272d893cb8758a
parent2d95e7ed07ed29715a801a3d33b2ad2a6fb26ee3
media: v4l: fwnode: Let the caller provide V4L2 fwnode endpoint

Instead of allocating the V4L2 fwnode endpoint in
v4l2_fwnode_endpoint_alloc_parse, let the caller to do this. This allows
setting default parameters for the endpoint which is a very common need
for drivers.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Tested-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov2659.c
drivers/media/i2c/smiapp/smiapp-core.c
drivers/media/i2c/tc358743.c
drivers/media/v4l2-core/v4l2-fwnode.c
include/media/v4l2-fwnode.h