]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: adc: axp288: remove redundant duplicate const on axp288_adc_channels
authorColin Ian King <colin.king@canonical.com>
Fri, 22 Jan 2016 17:49:22 +0000 (17:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:03:48 +0000 (11:03 +0100)
commit 7ca6574a7afb669b0b4b30dd63adeb310e97e250 upstream.

duplicate const can be removed, it is redundant. Found by static
analysis using smatch.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/axp288_adc.c

index f684fe31f8324534a67e39ac4ddb369a1fcfce5f..64799ad7ebad02a797607470678aa500842ed99f 100644 (file)
@@ -44,7 +44,7 @@ struct axp288_adc_info {
        struct regmap *regmap;
 };
 
-static const struct iio_chan_spec const axp288_adc_channels[] = {
+static const struct iio_chan_spec axp288_adc_channels[] = {
        {
                .indexed = 1,
                .type = IIO_TEMP,