Commit 3df1b4b6 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

fix

parent 6e1fae38
......@@ -734,23 +734,21 @@ static int s5k3l6xx_enum_frame_size(struct v4l2_subdev *sd,
for (i = 0; i++; i <= ARRAY_SIZE(s5k3l6xx_frames)) {
if (fse->code != s5k3l6xx_frames[i].code)
continue;
if (fse->index == matching)
break;
if (fse->index == matching) {
fse->code = s5k3l6xx_frames[i].code;
fse->min_width = s5k3l6xx_frames[i].width;
fse->max_width = s5k3l6xx_frames[i].width;
fse->max_height = s5k3l6xx_frames[i].height;
fse->min_height = s5k3l6xx_frames[i].height;
return 0;
}
matching++;
}
dev_err(sd->dev, "fsize i %d m %d", i, matching);
if (i >= ARRAY_SIZE(s5k3l6xx_frames))
return -EINVAL;
fse->code = s5k3l6xx_frames[i].code;
fse->min_width = s5k3l6xx_frames[i].width;
fse->max_width = s5k3l6xx_frames[i].width;
fse->max_height = s5k3l6xx_frames[i].height;
fse->min_height = s5k3l6xx_frames[i].height;
return 0;
return -EINVAL;
}
static int s5k3l6xx_try_cis_format(struct v4l2_mbus_framefmt *mf)
......
Supports Markdown
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