Commit c7b2c0cc authored by Deepak R Varma's avatar Deepak R Varma Committed by Mauro Carvalho Chehab

media: staging: media: imx: remove commented code

The virtual channel is always treated as 0 once the stream enters
CSI's. Commented code in the "#if 0" can be safely removed as it will
not serve any purpose in future.  Issue reported by checkpatch script.
Signed-off-by: default avatarDeepak R Varma <mh12gx2825@gmail.com>
Acked-by: default avatarSteve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent bea2b6a4
...@@ -1131,13 +1131,6 @@ static int csi_link_validate(struct v4l2_subdev *sd, ...@@ -1131,13 +1131,6 @@ static int csi_link_validate(struct v4l2_subdev *sd,
* enters the CSI's however, they are treated internally * enters the CSI's however, they are treated internally
* in the IPU as virtual channel 0. * in the IPU as virtual channel 0.
*/ */
#if 0
mutex_unlock(&priv->lock);
vc_num = imx_media_find_mipi_csi2_channel(&priv->sd.entity);
if (vc_num < 0)
return vc_num;
mutex_lock(&priv->lock);
#endif
ipu_csi_set_mipi_datatype(priv->csi, vc_num, ipu_csi_set_mipi_datatype(priv->csi, vc_num,
&priv->format_mbus[CSI_SINK_PAD]); &priv->format_mbus[CSI_SINK_PAD]);
} }
......
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