]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: max11100: Constify struct iio_chan_spec
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 26 May 2020 21:02:18 +0000 (23:02 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:33 +0000 (11:49 +0100)
commitd8b814e1daea7b5401bd592f6d3363562ef5860b
treeac0b0e9cb40f2f552f86aa372da5e485d3cbd548
parent1ac42b4cd31d0fb6b7094d6324d852a07ed3ba0e
iio: adc: max11100: Constify struct iio_chan_spec

max11100_channels is not modified and can therefore be made const to
allow the compiler to put it in read-only memory.

Before:
   text    data     bss     dec     hex filename
   3776    1168       0    4944    1350 drivers/iio/adc/max11100.o

After:
   text    data     bss     dec     hex filename
   3968     976       0    4944    1350 drivers/iio/adc/max11100.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/max11100.c