media: au0828: make const array addr_list static
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Nov 2017 17:26:48 +0000 (13:26 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 7 Nov 2017 09:03:25 +0000 (04:03 -0500)
commit213bc75a750363879792fd3793be8007a56ac477
tree2edc86ba0f0a5bcb5975fb13e48980b0277b4f06
parent4b8a14c8f89def80e50a3feb5b8b797cd54e1f2a
media: au0828: make const array addr_list static

Don't populate array addr_list on the stack but instead make it
static. Makes the object code smaller by over 360 bytes:

Before:
   text    data     bss     dec     hex filename
   8036    1488     192    9716    25f4 au0828-input.o

After:
   text    data     bss     dec     hex filename
   7696    1488     192    9376    24a0 au0828-input.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/usb/au0828/au0828-input.c