]> git.baikalelectronics.ru Git - kernel.git/commit
iio: dac: ad5686: Constify static struct iio_chan_spec
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 26 May 2020 21:02:21 +0000 (23:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:40:47 +0000 (19:40 +0100)
commitf3028c292bb02d101cc30d9c8f27fa8f62914153
tree135e5bceec4d6546ade3f35f7be0a63be0501e7d
parent32a70bc259c25de3459125c09fd2642ee846125f
iio: dac: ad5686: Constify static struct iio_chan_spec

These are never modified and can be made const to allow the compiler to
put it in read-only memory.

Before:
   text    data     bss     dec     hex filename
   6642   12608      64   19314    4b72 drivers/iio/dac/ad5686.o

After:
   text    data     bss     dec     hex filename
  16946    2304      64   19314    4b72 drivers/iio/dac/ad5686.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5686.c
drivers/iio/dac/ad5686.h