diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-06-12 01:42:01 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-17 10:24:09 +0200 |
commit | 7ec1c4a57c428a2114b81059e8683f8cf348920f (patch) | |
tree | c41d6314a01924030077da695e37821443e4a576 /drivers/media/pci/cx88/cx88-video.c | |
parent | media: imx-jpeg: Constify static struct v4l2_m2m_ops (diff) | |
download | linux-7ec1c4a57c428a2114b81059e8683f8cf348920f.tar.xz linux-7ec1c4a57c428a2114b81059e8683f8cf348920f.zip |
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>
Diffstat (limited to 'drivers/media/pci/cx88/cx88-video.c')
0 files changed, 0 insertions, 0 deletions