Skip to content

Commit f0cb5fe

Browse files
miquelraynalJonathan Cameron
authored andcommitted
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: 7af5257 ("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>
1 parent 732ae19 commit f0cb5fe

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/iio/adc/max1027.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ MODULE_DEVICE_TABLE(of, max1027_adc_dt_ids);
142142
MAX1027_V_CHAN(11, depth)
143143

144144
#define MAX1X31_CHANNELS(depth) \
145-
MAX1X27_CHANNELS(depth), \
146145
MAX1X29_CHANNELS(depth), \
147146
MAX1027_V_CHAN(12, depth), \
148147
MAX1027_V_CHAN(13, depth), \

0 commit comments

Comments
 (0)