iio:adc:at91-sama5d2: make array startup_lookup static to reduce code size
authorColin Ian King <colin.king@canonical.com>
Fri, 7 Jul 2017 16:08:35 +0000 (17:08 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Jul 2017 18:14:05 +0000 (19:14 +0100)
commit2df331cfe38d8aac4e787110279e00d12d0b2b25
treef1c3e2577967ddd1c4605359a4716183769e0dbb
parent72e36017eee0ffcbcf1630074f122916ed104269
iio:adc:at91-sama5d2: make array startup_lookup static to reduce code size

Making the const array startup_lookup static rather having it on the
stack saves 69 bytes. Add in missing int specifier to clean up a
checkpatch warning.

Before:
   text    data     bss     dec     hex filename
  10297    2800     128   13225    33a9 drivers/iio/adc/at91-sama5d2_adc.o

After:
   text    data     bss     dec     hex filename
  10140    2888     128   13156    3364 drivers/iio/adc/at91-sama5d2_adc.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91-sama5d2_adc.c