media: media/usb: don't set description in ENUM_FMT
The V4L2 core sets the description for the driver in order to ensure consistent naming. So drop the strscpy of the description in drivers. Also remove any description strings in driver-internal structures since those are no longer needed. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
4747bd0f41
commit
009cb7d579
@@ -873,14 +873,9 @@ static int pwc_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc
|
||||
case 0:
|
||||
/* RAW format */
|
||||
f->pixelformat = pdev->type <= 646 ? V4L2_PIX_FMT_PWC1 : V4L2_PIX_FMT_PWC2;
|
||||
f->flags = V4L2_FMT_FLAG_COMPRESSED;
|
||||
strscpy(f->description, "Raw Philips Webcam",
|
||||
sizeof(f->description));
|
||||
break;
|
||||
case 1:
|
||||
f->pixelformat = V4L2_PIX_FMT_YUV420;
|
||||
strscpy(f->description, "4:2:0, planar, Y-Cb-Cr",
|
||||
sizeof(f->description));
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user