Commit 8f75f241 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

printing

parent 3df1b4b6
......@@ -719,6 +719,7 @@ static int s5k3l6xx_enum_mbus_code(struct v4l2_subdev *sd,
if (code->index >= ARRAY_SIZE(s5k3l6xx_frames))
return -EINVAL;
code->code = s5k3l6xx_frames[code->index].code;
dev_err(sd->dev, "code_call index %d code %d", code->index, s5k3l6xx_frames[code->index].code);
return 0;
}
......@@ -729,9 +730,10 @@ static int s5k3l6xx_enum_frame_size(struct v4l2_subdev *sd,
unsigned i;
unsigned matching = 0;
dev_err(sd->dev, "fsize index %d", fse->index);
dev_err(sd->dev, "fsize index %d code %d", fse->index, fse->code);
for (i = 0; i++; i <= ARRAY_SIZE(s5k3l6xx_frames)) {
for (i = 0; i++; i < ARRAY_SIZE(s5k3l6xx_frames)) {
dev_err(sd->dev, "index %d code %d", i, s5k3l6xx_frames[i].code);
if (fse->code != s5k3l6xx_frames[i].code)
continue;
if (fse->index == matching) {
......
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