Skip to contentSkip to conversation

iio: adc: max1363: Drop provision to provide an IIO channel map via platform data

PATCH In review Jonathan Cameron 1 participant 2 messages Aug 21, 2022 – Sep 4, 2022 IIO

lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

PATCH 1/1 iio: adc: max1363: Drop provision to provide an IIO channel map via platform data

From: Jonathan Cameron <[email protected]>

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.

---
 drivers/iio/adc/max1363.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/iio/adc/max1363.c +0 -6
index eef55ed4814a..a28cf86cdce8 100644
@@ -29,7 +29,6 @@
 #include <linux/iio/sysfs.h>
 #include <linux/iio/events.h>
 #include <linux/iio/buffer.h>
-#include <linux/iio/driver.h>
 #include <linux/iio/kfifo_buf.h>
 #include <linux/iio/trigger_consumer.h>
 #include <linux/iio/triggered_buffer.h>
@@ -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);
Signature · 1 line
2.37.2
author maintainer
#1 lore raw
Quoted 9 lines · On Sun, 21 Aug 2022 17:10:58 +0100 Jonathan Cameron <[email protected]> wrote:

From: Jonathan Cameron <[email protected]>

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.

This one is trivial enough that I'll take it without review.

Applied to the togreg branch of iio.git and pushed out as testing for 0-day to see if I'm wrong :)

Thanks,

Jonathan

Quoted 28 lines
---
 drivers/iio/adc/max1363.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/iio/adc/max1363.c +0 -6
index eef55ed4814a..a28cf86cdce8 100644
@@ -29,7 +29,6 @@
 #include <linux/iio/sysfs.h>
 #include <linux/iio/events.h>
 #include <linux/iio/buffer.h>
-#include <linux/iio/driver.h>
 #include <linux/iio/kfifo_buf.h>
 #include <linux/iio/trigger_consumer.h>
 #include <linux/iio/triggered_buffer.h>
@@ -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);