media: v4l: fwnode: Add a convenience function for registering sensors
Add a convenience function for parsing firmware for information on related devices using v4l2_async_notifier_parse_fwnode_sensor_common() registering the notifier and finally the async sub-device itself. This should be useful for sensor drivers that do not have device specific requirements related to firmware information parsing or the async framework. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
7a9ec808ad
commit
aef69d5475
@@ -793,6 +793,8 @@ struct v4l2_subdev_platform_data {
|
||||
* list.
|
||||
* @asd: Pointer to respective &struct v4l2_async_subdev.
|
||||
* @notifier: Pointer to the managing notifier.
|
||||
* @subdev_notifier: A sub-device notifier implicitly registered for the sub-
|
||||
* device using v4l2_device_register_sensor_subdev().
|
||||
* @pdata: common part of subdevice platform data
|
||||
*
|
||||
* Each instance of a subdev driver should create this struct, either
|
||||
@@ -823,6 +825,7 @@ struct v4l2_subdev {
|
||||
struct list_head async_list;
|
||||
struct v4l2_async_subdev *asd;
|
||||
struct v4l2_async_notifier *notifier;
|
||||
struct v4l2_async_notifier *subdev_notifier;
|
||||
struct v4l2_subdev_platform_data *pdata;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user