]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: smiapp: make various const arrays static
authorColin Ian King <colin.king@canonical.com>
Mon, 10 Jul 2017 18:29:47 +0000 (14:29 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 19:53:14 +0000 (15:53 -0400)
commit86026abf47b245a2d642f5407ec26659f91e499b
treede0763810fea47b72c5cf0a77576a347b84400e7
parent74dcb29a38e4419a8e4217caa7e35ccc1b31e5a4
media: smiapp: make various const arrays static

Don't populate const arrays on the stack but instead make them static.
Makes the object code smaller and saves nearly 550 bytes.

Before:
   text    data     bss     dec     hex filename
   3638     752       0    4390    1126 smiapp-quirk.o

After:
   text    data     bss     dec     hex filename
   2802    1040       0    3842     f02 smiapp-quirk.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/smiapp/smiapp-quirk.c