media: exynos4-is: make array 'cmd' static, shrinks object size
authorColin Ian King <colin.king@canonical.com>
Sat, 6 Jan 2018 16:03:27 +0000 (11:03 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 11:05:12 +0000 (06:05 -0500)
commit79d6e6e6581cc5397cb179dd2a442d18e423897a
tree4c024ff4e2a46256c7fbc1bcc48ce8411973f471
parentc00ba2c1230042e2c46f1466c20f395cab0d9b11
media: exynos4-is: make array 'cmd' static, shrinks object size

Don't populate the const read-only array 'cmd' on the stack but instead
make it static. Makes the object code smaller by 38 bytes:

Before:
   text    data     bss     dec     hex filename
   4950     868       0    5818    16ba fimc-is-regs.o

After:
   text    data     bss     dec     hex filename
   4824     956       0    5780    1694 fimc-is-regs.o

(gcc version 7.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/exynos4-is/fimc-is-regs.c