Commit 5b7ccde2 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] vim2m: drop format description

The format description is now filled in by the core, so we can
drop this in this virtual m2m driver.
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent ebb09a96
...@@ -80,7 +80,6 @@ static struct platform_device vim2m_pdev = { ...@@ -80,7 +80,6 @@ static struct platform_device vim2m_pdev = {
}; };
struct vim2m_fmt { struct vim2m_fmt {
char *name;
u32 fourcc; u32 fourcc;
int depth; int depth;
/* Types the format can be used for */ /* Types the format can be used for */
...@@ -89,14 +88,12 @@ struct vim2m_fmt { ...@@ -89,14 +88,12 @@ struct vim2m_fmt {
static struct vim2m_fmt formats[] = { static struct vim2m_fmt formats[] = {
{ {
.name = "RGB565 (BE)",
.fourcc = V4L2_PIX_FMT_RGB565X, /* rrrrrggg gggbbbbb */ .fourcc = V4L2_PIX_FMT_RGB565X, /* rrrrrggg gggbbbbb */
.depth = 16, .depth = 16,
/* Both capture and output format */ /* Both capture and output format */
.types = MEM2MEM_CAPTURE | MEM2MEM_OUTPUT, .types = MEM2MEM_CAPTURE | MEM2MEM_OUTPUT,
}, },
{ {
.name = "4:2:2, packed, YUYV",
.fourcc = V4L2_PIX_FMT_YUYV, .fourcc = V4L2_PIX_FMT_YUYV,
.depth = 16, .depth = 16,
/* Output-only format */ /* Output-only format */
...@@ -458,7 +455,6 @@ static int enum_fmt(struct v4l2_fmtdesc *f, u32 type) ...@@ -458,7 +455,6 @@ static int enum_fmt(struct v4l2_fmtdesc *f, u32 type)
if (i < NUM_FORMATS) { if (i < NUM_FORMATS) {
/* Format found */ /* Format found */
fmt = &formats[i]; fmt = &formats[i];
strncpy(f->description, fmt->name, sizeof(f->description) - 1);
f->pixelformat = fmt->fourcc; f->pixelformat = fmt->fourcc;
return 0; 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