linux-stable/drivers/media/platform/imx-jpeg
Rikard Falkeborn 7ec1c4a57c media: imx-jpeg: Constify static struct mxc_jpeg_fmt
It is only read-from, so make it const. In order to be able to do this,
constify all places where mxc_jpeg_fmt is used, in function arguments,
return values and pointers. On top of that, make the name a pointer to
const char.

On aarch64, this shrinks object code size with 550 bytes with gcc 11.1.0,
and almost 2kB with clang 12.0.0.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-06-17 10:24:09 +02:00
..
Kconfig media: VIDEO_IMX8_JPEG should depend on ARCH_MXC and not default to m 2021-04-06 16:12:16 +02:00
Makefile
mxc-jpeg-hw.c
mxc-jpeg-hw.h
mxc-jpeg.c media: imx-jpeg: Constify static struct mxc_jpeg_fmt 2021-06-17 10:24:09 +02:00
mxc-jpeg.h media: imx-jpeg: Constify static struct mxc_jpeg_fmt 2021-06-17 10:24:09 +02:00