diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-19 15:46:22 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-10-21 17:56:09 +0100 |
commit | 59dba8facb4ba20ffa6b6a1c76c41f3c662e075a (patch) | |
tree | 867d52483641a5e1d4ef55f040ce7e93757ba72e /drivers/iio/imu/adis.c | |
parent | f66f18e99a253f5cf8c1cf7f2910b7ddcee92970 (diff) | |
download | blackbird-op-linux-59dba8facb4ba20ffa6b6a1c76c41f3c662e075a.tar.gz blackbird-op-linux-59dba8facb4ba20ffa6b6a1c76c41f3c662e075a.zip |
iio: adc: adc12138: make array ch_to_mux static, makes object code smaller
Don't populate const array ch_to_mux on the stack, instead
make it static. Makes the object code smaller by over 200 bytes:
Before:
text data bss dec hex filename
12663 1648 128 14439 3867 drivers/iio/adc/ti-adc12138.o
After
text data bss dec hex filename
12353 1744 128 14225 3791 drivers/iio/adc/ti-adc12138.o
(gcc version 7.2.0 x86_64)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/imu/adis.c')
0 files changed, 0 insertions, 0 deletions