Commit 00082f89 authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

media: imx: imx8mq-mipi-csi2: minor reordering in set_format

parent bbbd0cf9
......@@ -557,15 +557,15 @@ static int imx8mq_mipi_csi_set_fmt(struct v4l2_subdev *sd,
if (sdformat->pad != MIPI_CSI2_PAD_SINK)
return -EINVAL;
csi2_fmt = find_csi2_format(sdformat->format.code);
if (!csi2_fmt)
csi2_fmt = &imx8mq_mipi_csi_formats[0];
fmt = imx8mq_mipi_csi_get_format(state, cfg, sdformat->which,
sdformat->pad);
mutex_lock(&state->lock);
csi2_fmt = find_csi2_format(sdformat->format.code);
if (!csi2_fmt)
csi2_fmt = &imx8mq_mipi_csi_formats[0];
fmt->code = csi2_fmt->code;
fmt->width = sdformat->format.width;
fmt->height = sdformat->format.height;
......
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