[media] V4L: Merge struct v4l2_async_subdev_list with struct v4l2_subdev
By integrating the v4l2-async API internals a bit more with the core overall the v4l2-async code becomes a bit simpler and easier to follow. Acked-and-tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
e8419d0890
commit
b426b3a660
@@ -61,26 +61,13 @@ struct v4l2_async_subdev {
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
/**
|
||||
* v4l2_async_subdev_list - provided by subdevices
|
||||
* @list: links struct v4l2_async_subdev_list objects to a global list
|
||||
* before probing, and onto notifier->done after probing
|
||||
* @asd: pointer to respective struct v4l2_async_subdev
|
||||
* @notifier: pointer to managing notifier
|
||||
*/
|
||||
struct v4l2_async_subdev_list {
|
||||
struct list_head list;
|
||||
struct v4l2_async_subdev *asd;
|
||||
struct v4l2_async_notifier *notifier;
|
||||
};
|
||||
|
||||
/**
|
||||
* v4l2_async_notifier - v4l2_device notifier data
|
||||
* @num_subdevs:number of subdevices
|
||||
* @subdevs: array of pointers to subdevice descriptors
|
||||
* @v4l2_dev: pointer to struct v4l2_device
|
||||
* @waiting: list of struct v4l2_async_subdev, waiting for their drivers
|
||||
* @done: list of struct v4l2_async_subdev_list, already probed
|
||||
* @done: list of struct v4l2_subdev, already probed
|
||||
* @list: member in a global list of notifiers
|
||||
* @bound: a subdevice driver has successfully probed one of subdevices
|
||||
* @complete: all subdevices have been probed successfully
|
||||
|
Reference in New Issue
Block a user