summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Qian <ming.qian@nxp.com>2022-04-27 10:25:58 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-20 10:30:29 +0100
commit39ad84e911c5c0e1593f3652325d279692817188 (patch)
tree92621ff21f13534496373d40fcc1dd4b46cb63fa
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e (diff)
downloadlinux-39ad84e911c5c0e1593f3652325d279692817188.tar.bz2
media: imx-jpeg: Don't fill the description field in struct v4l2_fmtdesc
The core will fill this in v4l_fill_fmtdesc(), ensuring consistent format description names. Signed-off-by: Ming Qian <ming.qian@nxp.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
-rw-r--r--drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
index f36b512bae51..de57101b5df3 100644
--- a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
+++ b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
@@ -389,7 +389,6 @@ static int enum_fmt(const struct mxc_jpeg_fmt *mxc_formats, int n,
if (i >= n)
return -EINVAL;
- strscpy(f->description, mxc_formats[i].name, sizeof(f->description));
f->pixelformat = mxc_formats[i].fourcc;
return 0;
@@ -1646,7 +1645,6 @@ static int mxc_jpeg_enum_fmt_vid_cap(struct file *file, void *priv,
if (f->index)
return -EINVAL;
f->pixelformat = q_data->fmt->fourcc;
- strscpy(f->description, q_data->fmt->name, sizeof(f->description));
return 0;
}
}