From: Jonathan Cameron <jic23@kernel.org>
To: linux-iio@vger.kernel.org
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: Re: [PATCH] iio: adc: max1363: Drop provision to provide an IIO channel map via platform data
Date: Sun, 4 Sep 2022 17:40:32 +0100 [thread overview]
Message-ID: <20220904174032.7fbd7673@jic23-huawei> (raw)
In-Reply-To: <20220821161058.2207185-1-jic23@kernel.org>
On Sun, 21 Aug 2022 17:10:58 +0100
Jonathan Cameron <jic23@kernel.org> wrote:
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> 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 <Jonathan.Cameron@huawei.com>
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
> ---
> drivers/iio/adc/max1363.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
> index eef55ed4814a..a28cf86cdce8 100644
> --- a/drivers/iio/adc/max1363.c
> +++ b/drivers/iio/adc/max1363.c
> @@ -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);
prev parent reply other threads:[~2022-09-04 17:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-21 16:10 [PATCH] iio: adc: max1363: Drop provision to provide an IIO channel map via platform data Jonathan Cameron
2022-09-04 16:40 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220904174032.7fbd7673@jic23-huawei \
--to=jic23@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox