media: platform: sti: make a const arrays static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Feb 2021 17:08:50 +0000 (18:08 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Mar 2021 10:59:42 +0000 (11:59 +0100)
commit0c8be47d4a72702382637775d61584a1f097f071
treeaf916a0defb2b0dde4baf311953bbac1a93934a0
parentbcbe55dc7b41c333970bde85eddfc5ac23e87433
media: platform: sti: make a const arrays static, makes object smaller

Don't populate the const arrays on the stack but instead it
static. Makes the object code smaller by 8 bytes:

Before:
   text    data     bss     dec     hex filename
  12504    4568       0   17072    42b0 media/platform/sti/hva/hva-h264.o

After:
   text    data     bss     dec     hex filename
  12272    4792       0   17064    42a8 media/platform/sti/hva/hva-h264.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/sti/hva/hva-h264.c