Commit 0b566344 authored by Enrico Scholz's avatar Enrico Scholz

media:mx6s_capture: avoid bogus data in ENUM_INPUT

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent 0646cbaf
......@@ -1328,9 +1328,11 @@ static int mx6s_vidioc_enum_input(struct file *file, void *priv,
if (inp->index != 0)
return -EINVAL;
/* default is camera */
inp->type = V4L2_INPUT_TYPE_CAMERA;
strcpy(inp->name, "Camera");
*inp = (struct v4l2_input) {
.index = inp->index,
.type = V4L2_INPUT_TYPE_CAMERA,
.name = "Camera",
};
return 0;
}
......
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