aboutsummaryrefslogtreecommitdiff
path: root/drivers/extcon
diff options
context:
space:
mode:
authorRikard Falkeborn2021-06-12 01:42:01 +0200
committerMauro Carvalho Chehab2021-06-17 10:24:09 +0200
commit7ec1c4a57c428a2114b81059e8683f8cf348920f (patch)
treec41d6314a01924030077da695e37821443e4a576 /drivers/extcon
parent682e69d7a262d8959f8b8cc1a8ed68bc6ec4be61 (diff)
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/extcon')
0 files changed, 0 insertions, 0 deletions