Skip to content

Commit da5c791

Browse files
Sakari Ailusmchehab
authored andcommitted
media: v4l2-fwnode: Document new usage patterns of v4l2_fwnode_endpoint_parse
Document that it is possible to provide defaults for multiple bus types to v4l2_fwnode_endpoint_parse and v4l2_fwnode_endpoint_alloc_parse. Also underline the fact that detecting the bus type without bus-type property is only for the old drivers. Also correct capitalisation of BT.656. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent bb4bba9 commit da5c791

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

‎include/media/v4l2-fwnode.h‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,10 @@ struct v4l2_fwnode_connector {
226226
* call this function once the correct type is found --- with a default
227227
* configuration valid for that type.
228228
*
229-
* As a compatibility means guessing the bus type is also supported by setting
230-
* @vep.bus_type to V4L2_MBUS_UNKNOWN. The caller may not provide a default
231-
* configuration in this case as the defaults are specific to a given bus type.
232-
* This functionality is deprecated and should not be used in new drivers and it
233-
* is only supported for CSI-2 D-PHY, parallel and Bt.656 buses.
229+
* It is also allowed to set @vep.bus_type to V4L2_MBUS_UNKNOWN. USING THIS
230+
* FEATURE REQUIRES "bus-type" PROPERTY IN DT BINDINGS. For old drivers,
231+
* guessing @vep.bus_type between CSI-2 D-PHY, parallel and BT.656 busses is
232+
* supported. NEVER RELY ON GUESSING @vep.bus_type IN NEW DRIVERS!
234233
*
235234
* The function does not change the V4L2 fwnode endpoint state if it fails.
236235
*
@@ -269,11 +268,10 @@ void v4l2_fwnode_endpoint_free(struct v4l2_fwnode_endpoint *vep);
269268
* call this function once the correct type is found --- with a default
270269
* configuration valid for that type.
271270
*
272-
* As a compatibility means guessing the bus type is also supported by setting
273-
* @vep.bus_type to V4L2_MBUS_UNKNOWN. The caller may not provide a default
274-
* configuration in this case as the defaults are specific to a given bus type.
275-
* This functionality is deprecated and should not be used in new drivers and it
276-
* is only supported for CSI-2 D-PHY, parallel and Bt.656 buses.
271+
* It is also allowed to set @vep.bus_type to V4L2_MBUS_UNKNOWN. USING THIS
272+
* FEATURE REQUIRES "bus-type" PROPERTY IN DT BINDINGS. For old drivers,
273+
* guessing @vep.bus_type between CSI-2 D-PHY, parallel and BT.656 busses is
274+
* supported. NEVER RELY ON GUESSING @vep.bus_type IN NEW DRIVERS!
277275
*
278276
* The function does not change the V4L2 fwnode endpoint state if it fails.
279277
*

0 commit comments

Comments
 (0)