summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2015-07-28 01:39:00 +0300
committerJonathan Cameron <jic23@kernel.org>2015-08-02 21:07:50 +0300
commit688febbd168c52ab54ad29c210aceecb72386398 (patch)
treefb34650b825f82667419a894dc3946d54e9b483f /drivers/iio
parent19d566420b8c5a26d4f9666ef665e088173d3df3 (diff)
downloadlinux-688febbd168c52ab54ad29c210aceecb72386398.tar.xz
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.c2
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 */