提交 3be682fa 编写于 作者: S Sakari Ailus 提交者: Mauro Carvalho Chehab

media: v4l2-fwnode: Say it's fine to use v4l2_fwnode_endpoint_parse

Earlier it was expected that there would be more variable size endpoint
properties and that most if not all drivers would need them. For that
reason it was expected also that v4l2_fwnode_endpoint_parse would no
longer be needed.

What actually happened that not all drivers require "link-frequencies",
the only variable size media endpoint property without a small upper
limit. Therefore drivers that do not need that information are fine using
v4l2_fwnode_endpoint_parse. So don't tell drivers to use
v4l2_fwnode_endpoint_alloc_parse in all cases.
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 20936f77
...@@ -245,9 +245,9 @@ struct v4l2_fwnode_connector { ...@@ -245,9 +245,9 @@ struct v4l2_fwnode_connector {
* *
* The function does not change the V4L2 fwnode endpoint state if it fails. * The function does not change the V4L2 fwnode endpoint state if it fails.
* *
* NOTE: This function does not parse properties the size of which is variable * NOTE: This function does not parse "link-frequencies" property as its size is
* without a low fixed limit. Please use v4l2_fwnode_endpoint_alloc_parse() in * not known in advance. Please use v4l2_fwnode_endpoint_alloc_parse() if you
* new drivers instead. * need properties of variable size.
* *
* Return: %0 on success or a negative error code on failure: * Return: %0 on success or a negative error code on failure:
* %-ENOMEM on memory allocation failure * %-ENOMEM on memory allocation failure
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册