summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorColin Ian King2017-07-10 19:46:54 +0200
committerJonathan Cameron2017-07-10 23:00:17 +0200
commit5b4e17c9c45a93bae226fdaa2985c8b521f45bd4 (patch)
tree6048ebb656b8f2b596715fbe2ee7d3ef377d66c1 /drivers/iio/adc
parentiio: accel: st_accel: rename H3LIS331DL_DRIVER_NAME in H3LIS331DL_ACCEL_DEV_NAME (diff)
downloadkernel-qcow2-linux-5b4e17c9c45a93bae226fdaa2985c8b521f45bd4.tar.gz
kernel-qcow2-linux-5b4e17c9c45a93bae226fdaa2985c8b521f45bd4.tar.xz
kernel-qcow2-linux-5b4e17c9c45a93bae226fdaa2985c8b521f45bd4.zip
iio: adc: at91: make array startup_lookup static
Don't populate array startup_lookup on the stack but instead make it static. Makes the object code smaller. Before: text data bss dec hex filename 21754 5440 128 27322 6aba drivers/iio/adc/at91_adc.o After: text data bss dec hex filename 21613 5496 128 27237 6a65 drivers/iio/adc/at91_adc.o Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/at91_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 34b928cefeed..15109728cae7 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -799,7 +799,7 @@ static u32 calc_startup_ticks_9x5(u32 startup_time, u32 adc_clk_khz)
* For sama5d3x and at91sam9x5, the formula changes to:
* Startup Time = <lookup_table_value> / ADC Clock
*/
- const int startup_lookup[] = {
+ static const int startup_lookup[] = {
0, 8, 16, 24,
64, 80, 96, 112,
512, 576, 640, 704,