scsi: ufs: tc-dwc-g210: make arrays static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Tue, 12 Sep 2017 11:32:28 +0000 (12:32 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Sep 2017 19:41:45 +0000 (15:41 -0400)
commit2a8ee61685a9fd7f054b0596865290baffe84c16
tree8acfcc9e815abf9eb2beea75ca95bc2b5ecbe47d
parentcd6372b614c4504214baab838f77b06503c9cd86
scsi: ufs: tc-dwc-g210: make arrays static, reduces object code size

Don't populate const arrays on the stack, instead make them static.
Makes the object code smaller by over 740 bytes.

Before:
   text    data     bss     dec     hex filename
   3840     208       0    4048     fd0 drivers/scsi/ufs/tc-dwc-g210.o

After:
   text    data     bss     dec     hex filename
   2679     624       0    3303     ce7 drivers/scsi/ufs/tc-dwc-g210.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/tc-dwc-g210.c