Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: rtl28xxu: make array rc_nec_tab static const

Don't populate the array rc_nec_tab on the stack, instead make it
static const. Makes the object code smaller by over 620 bytes:

Before:
text data bss dec hex filename
49511 17040 64 66615 10437 rtl28xxu.o

After:
text data bss dec hex filename
48825 17104 64 65993 101c9 rtl28xxu.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Colin Ian King and committed by
Mauro Carvalho Chehab
bab4cb30 b8e9b36d

+1 -1
+1 -1
drivers/media/usb/dvb-usb-v2/rtl28xxu.c
··· 1598 1598 struct rtl28xxu_dev *dev = d->priv; 1599 1599 u8 buf[5]; 1600 1600 u32 rc_code; 1601 - struct rtl28xxu_reg_val rc_nec_tab[] = { 1601 + static const struct rtl28xxu_reg_val rc_nec_tab[] = { 1602 1602 { 0x3033, 0x80 }, 1603 1603 { 0x3020, 0x43 }, 1604 1604 { 0x3021, 0x16 },