Commit a50ee4af authored by Tomi Valkeinen's avatar Tomi Valkeinen Committed by Mauro Carvalho Chehab

media: subdev: Use 'shall' instead of 'may' in route validation

Route validation docs use the word 'may'. Change that to 'shall' for
emphasis.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: default avatarJacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent c2402afc
...@@ -1738,7 +1738,7 @@ int v4l2_subdev_routing_validate(struct v4l2_subdev *sd, ...@@ -1738,7 +1738,7 @@ int v4l2_subdev_routing_validate(struct v4l2_subdev *sd,
/* /*
* V4L2_SUBDEV_ROUTING_NO_STREAM_MIX: Streams on the same pad * V4L2_SUBDEV_ROUTING_NO_STREAM_MIX: Streams on the same pad
* may not be routed to streams on different pads. * shall not be routed to streams on different pads.
*/ */
if (disallow & V4L2_SUBDEV_ROUTING_NO_STREAM_MIX) { if (disallow & V4L2_SUBDEV_ROUTING_NO_STREAM_MIX) {
if (remote_pads[route->sink_pad] != U32_MAX && if (remote_pads[route->sink_pad] != U32_MAX &&
......
...@@ -1642,13 +1642,13 @@ u64 v4l2_subdev_state_xlate_streams(const struct v4l2_subdev_state *state, ...@@ -1642,13 +1642,13 @@ u64 v4l2_subdev_state_xlate_streams(const struct v4l2_subdev_state *state,
* enum v4l2_subdev_routing_restriction - Subdevice internal routing restrictions * enum v4l2_subdev_routing_restriction - Subdevice internal routing restrictions
* *
* @V4L2_SUBDEV_ROUTING_NO_1_TO_N: * @V4L2_SUBDEV_ROUTING_NO_1_TO_N:
* an input stream may not be routed to multiple output streams (stream * an input stream shall not be routed to multiple output streams (stream
* duplication) * duplication)
* @V4L2_SUBDEV_ROUTING_NO_N_TO_1: * @V4L2_SUBDEV_ROUTING_NO_N_TO_1:
* multiple input streams may not be routed to the same output stream * multiple input streams shall not be routed to the same output stream
* (stream merging) * (stream merging)
* @V4L2_SUBDEV_ROUTING_NO_STREAM_MIX: * @V4L2_SUBDEV_ROUTING_NO_STREAM_MIX:
* streams on the same pad may not be routed to streams on different pads * streams on the same pad shall not be routed to streams on different pads
* @V4L2_SUBDEV_ROUTING_ONLY_1_TO_1: * @V4L2_SUBDEV_ROUTING_ONLY_1_TO_1:
* only non-overlapping 1-to-1 stream routing is allowed (a combination of * only non-overlapping 1-to-1 stream routing is allowed (a combination of
* @V4L2_SUBDEV_ROUTING_NO_1_TO_N and @V4L2_SUBDEV_ROUTING_NO_N_TO_1) * @V4L2_SUBDEV_ROUTING_NO_1_TO_N and @V4L2_SUBDEV_ROUTING_NO_N_TO_1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment