Re: [PATCH 1/6] iio: adc: max11100: Constify struct iio_chan_spec

2020-05-31 Thread Jonathan Cameron
On Tue, 26 May 2020 23:02:18 +0200 Rikard Falkeborn wrote: > max11100_channels is not modified and can therefore be made const to > allow the compiler to put it in read-only memory. > > Before: >textdata bss dec hex filename >37761168 049441350

[PATCH 1/6] iio: adc: max11100: Constify struct iio_chan_spec

2020-05-26 Thread Rikard Falkeborn
max11100_channels is not modified and can therefore be made const to allow the compiler to put it in read-only memory. Before: textdata bss dec hex filename 37761168 049441350 drivers/iio/adc/max11100.o After: textdata bss dec hex