iio: accel: make array init_data static to reduce code size
authorColin Ian King <colin.king@canonical.com>
Fri, 7 Jul 2017 15:55:19 +0000 (16:55 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Jul 2017 18:11:49 +0000 (19:11 +0100)
commit72e36017eee0ffcbcf1630074f122916ed104269
treefad024f92aca5e78150d0a42c5930cd6d4b11f1f
parent36d311bc1663f004529d2f870c1fc939d00c49f0
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>
drivers/iio/accel/da311.c