Skip to content

Commit

Permalink
[media] vim2m: drop format description
Browse files Browse the repository at this point in the history
The format description is now filled in by the core, so we can
drop this in this virtual m2m driver.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 1, 2015
1 parent ebb09a9 commit 5b7ccde
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/media/platform/vim2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ static struct platform_device vim2m_pdev = {
};

struct vim2m_fmt {
char *name;
u32 fourcc;
int depth;
/* Types the format can be used for */
Expand All @@ -89,14 +88,12 @@ struct vim2m_fmt {

static struct vim2m_fmt formats[] = {
{
.name = "RGB565 (BE)",
.fourcc = V4L2_PIX_FMT_RGB565X, /* rrrrrggg gggbbbbb */
.depth = 16,
/* Both capture and output format */
.types = MEM2MEM_CAPTURE | MEM2MEM_OUTPUT,
},
{
.name = "4:2:2, packed, YUYV",
.fourcc = V4L2_PIX_FMT_YUYV,
.depth = 16,
/* Output-only format */
Expand Down Expand Up @@ -458,7 +455,6 @@ static int enum_fmt(struct v4l2_fmtdesc *f, u32 type)
if (i < NUM_FORMATS) {
/* Format found */
fmt = &formats[i];
strncpy(f->description, fmt->name, sizeof(f->description) - 1);
f->pixelformat = fmt->fourcc;
return 0;
}
Expand Down

0 comments on commit 5b7ccde

Please sign in to comment.