summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2015-07-28 00:39:00 +0200
committerJonathan Cameron <jic23@kernel.org>2015-08-02 20:07:50 +0200
commit688febbd168c52ab54ad29c210aceecb72386398 (patch)
treefb34650b825f82667419a894dc3946d54e9b483f /drivers/iio/adc
parentiio:adc:berlin2-adc: pass up real error code (diff)
downloadlinux-688febbd168c52ab54ad29c210aceecb72386398.tar.xz
linux-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/adc')
-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 */