mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
[media] sur40: drop unnecessary format description
Don't fill in the format description. This is now done in the V4L2 core to ensure consistent descriptions. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Nick Dyer <nick.dyer@itdev.co.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
8ed50eb420
commit
d14cf19d2b
@ -783,7 +783,6 @@ static int sur40_vidioc_enum_fmt(struct file *file, void *priv,
|
||||
{
|
||||
if (f->index != 0)
|
||||
return -EINVAL;
|
||||
strlcpy(f->description, "8-bit greyscale", sizeof(f->description));
|
||||
f->pixelformat = V4L2_PIX_FMT_GREY;
|
||||
f->flags = 0;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user