mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
media: v4l: fwnode: Add convenience function for parsing common external refs
Add v4l2_fwnode_parse_reference_sensor_common for parsing common sensor properties that refer to adjacent devices such as flash or lens driver chips. As this is an association only, there's little a regular driver needs to know about these devices as such. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Pavel Machek <pavel@ucw.cz> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
a1699a4e52
commit
7a9ec808ad
3 changed files with 58 additions and 1 deletions
|
@ -156,7 +156,8 @@ void v4l2_async_notifier_unregister(struct v4l2_async_notifier *notifier);
|
|||
* Release memory resources related to a notifier, including the async
|
||||
* sub-devices allocated for the purposes of the notifier but not the notifier
|
||||
* itself. The user is responsible for calling this function to clean up the
|
||||
* notifier after calling @v4l2_async_notifier_parse_fwnode_endpoints.
|
||||
* notifier after calling @v4l2_async_notifier_parse_fwnode_endpoints or
|
||||
* @v4l2_fwnode_reference_parse_sensor_common.
|
||||
*
|
||||
* There is no harm from calling v4l2_async_notifier_cleanup in other
|
||||
* cases as long as its memory has been zeroed after it has been
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue