diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-07-07 17:55:19 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-07-09 20:11:49 +0200 |
commit | 72e36017eee0ffcbcf1630074f122916ed104269 (patch) | |
tree | fad024f92aca5e78150d0a42c5930cd6d4b11f1f /drivers/ata/pata_jmicron.c | |
parent | iio: adc: rockchip_saradc: add NULL check on of_match_device() return value (diff) | |
download | linux-72e36017eee0ffcbcf1630074f122916ed104269.tar.xz linux-72e36017eee0ffcbcf1630074f122916ed104269.zip |
iio: accel: make array init_data static to reduce code size
Making the const array init_data static rather having it on the
stack saves us a couple hundreds of bytes:
Before:
text data bss dec hex filename
3175 848 0 4023 fb7 drivers/iio/accel/da311.o
After:
text data bss dec hex filename
2860 936 0 3796 ed4 drivers/iio/accel/da311.o
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/ata/pata_jmicron.c')
0 files changed, 0 insertions, 0 deletions