diff options
author | Colin Ian King | 2017-09-07 11:50:23 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2017-09-23 14:30:25 +0200 |
commit | 601b1f0ac7fadbe90cc04c41a1cb31c7cd402fea (patch) | |
tree | 2c16b4680b48340a7ea679d981846662ce8ac4f9 /drivers/media/pci/cx23885 | |
parent | media: ov9640: make const arrays res_x/y static const, reduces object code size (diff) | |
download | kernel-qcow2-linux-601b1f0ac7fadbe90cc04c41a1cb31c7cd402fea.tar.gz kernel-qcow2-linux-601b1f0ac7fadbe90cc04c41a1cb31c7cd402fea.tar.xz kernel-qcow2-linux-601b1f0ac7fadbe90cc04c41a1cb31c7cd402fea.zip |
media: cx23885: make const array buf static, reduces object code size
Don't populate the array buf on the stack, instead make it static.
Makes the object code smaller by over 240 bytes:
Before:
text data bss dec hex filename
21689 22992 416 45097 b029 cx23885-cards.o
After:
text data bss dec hex filename
21348 23088 416 44852 af34 cx23885-cards.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>
Diffstat (limited to 'drivers/media/pci/cx23885')
-rw-r--r-- | drivers/media/pci/cx23885/cx23885-cards.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-cards.c b/drivers/media/pci/cx23885/cx23885-cards.c index 78a8836d03e4..28eab9c518c5 100644 --- a/drivers/media/pci/cx23885/cx23885-cards.c +++ b/drivers/media/pci/cx23885/cx23885-cards.c @@ -1323,7 +1323,7 @@ static void hauppauge_eeprom(struct cx23885_dev *dev, u8 *eeprom_data) static void tbs_card_init(struct cx23885_dev *dev) { int i; - const u8 buf[] = { + static const u8 buf[] = { 0xe0, 0x06, 0x66, 0x33, 0x65, 0x01, 0x17, 0x06, 0xde}; |