iio:adc:berlin2-adc: constify iio_chan_spec
authorHartmut Knaack <knaack.h@gmx.de>
Mon, 27 Jul 2015 22:39:00 +0000 (00:39 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Aug 2015 18:07:50 +0000 (19:07 +0100)
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>
drivers/iio/adc/berlin2-adc.c

index 30e2090df96d7d81a4a61a9f460e24f851a60993..2084b0b66ea0e4759dee33851b55e04b6057d882 100644 (file)
@@ -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 */