]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: max1027: Fix the number of max1X31 channels
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Aug 2021 11:11:25 +0000 (13:11 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Sep 2021 11:02:10 +0000 (12:02 +0100)
commit906cb565f4353f5da8f1289ca545ba28898fb161
treed92d220a5905880f6b095c7b69447e0dba6030c1
parentd8114d5329288274acef15079268edcc74dd6dd2
iio: adc: max1027: Fix the number of max1X31 channels

The macro MAX1X29_CHANNELS() already calls MAX1X27_CHANNELS().
Calling MAX1X27_CHANNELS() before MAX1X29_CHANNELS() in the definition
of MAX1X31_CHANNELS() declares the first 8 channels twice. So drop this
extra call from the MAX1X31 channels list definition.

Fixes: 31d7fdf0688a ("iio: adc: max1027: Prepare the introduction of different resolutions")
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210818111139.330636-3-miquel.raynal@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/max1027.c