diff options
author | Hartmut Knaack <knaack.h@gmx.de> | 2015-07-28 00:39:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-02 19:07:50 +0100 |
commit | 688febbd168c52ab54ad29c210aceecb72386398 (patch) | |
tree | fb34650b825f82667419a894dc3946d54e9b483f /drivers/iio | |
parent | 19d566420b8c5a26d4f9666ef665e088173d3df3 (diff) | |
download | linux-stable-688febbd168c52ab54ad29c210aceecb72386398.tar.gz linux-stable-688febbd168c52ab54ad29c210aceecb72386398.tar.bz2 linux-stable-688febbd168c52ab54ad29c210aceecb72386398.zip |
iio:adc:berlin2-adc: constify iio_chan_spec
Mark berlin2_adc_channels array as constant.
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/berlin2-adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/berlin2-adc.c b/drivers/iio/adc/berlin2-adc.c index 30e2090df96d..2084b0b66ea0 100644 --- a/drivers/iio/adc/berlin2-adc.c +++ b/drivers/iio/adc/berlin2-adc.c @@ -86,7 +86,7 @@ struct berlin2_adc_priv { .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ } -static struct iio_chan_spec berlin2_adc_channels[] = { +static const struct iio_chan_spec berlin2_adc_channels[] = { BERLIN2_ADC_CHANNEL(0, IIO_VOLTAGE), /* external input */ BERLIN2_ADC_CHANNEL(1, IIO_VOLTAGE), /* external input */ BERLIN2_ADC_CHANNEL(2, IIO_VOLTAGE), /* external input */ |