From: Jonathan Cameron Date: Sun, 21 Aug 2022 16:10:58 +0000 (+0100) Subject: iio: adc: max1363: Drop provision to provide an IIO channel map via platform data X-Git-Tag: v6.1-rc5~262^2~59^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c13219cececed248df6feacb0d33326266234b7b;p=platform%2Fkernel%2Flinux-starfive.git iio: adc: max1363: Drop provision to provide an IIO channel map via platform data Back in the days of board files, platform data was used to provide information on the mapping from ADC channel to an analog signal from another device. We've long since moved to doing this via device tree. Hence drop the support from the max1363 driver which is the only driver still providing this. Signed-off-by: Jonathan Cameron Link: https://lore.kernel.org/r/20220821161058.2207185-1-jic23@kernel.org --- diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c index eef55ed..a28cf86 100644 --- a/drivers/iio/adc/max1363.c +++ b/drivers/iio/adc/max1363.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include @@ -1595,11 +1594,6 @@ static int max1363_probe(struct i2c_client *client, if (!indio_dev) return -ENOMEM; - ret = devm_iio_map_array_register(&client->dev, indio_dev, - client->dev.platform_data); - if (ret < 0) - return ret; - st = iio_priv(indio_dev); mutex_init(&st->lock);