public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Alexandru Ardelean <ardeleanalex@gmail.com>
Cc: linux-iio <linux-iio@vger.kernel.org>,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>,
	Cristian Pop <cristian.pop@analog.com>
Subject: Re: [PATCH 2/8] iio: dac: ad5766: Drop duplicate setting of iio_dev.dev.parent
Date: Tue, 27 Apr 2021 18:13:47 +0100	[thread overview]
Message-ID: <20210427181347.32196fe5@jic23-huawei> (raw)
In-Reply-To: <CA+U=Dso3G_P-HkXTwSWtjtPgC-TV5X-pGcFh1xfQUEZpra1B9w@mail.gmail.com>

On Tue, 27 Apr 2021 10:26:31 +0300
Alexandru Ardelean <ardeleanalex@gmail.com> wrote:

> On Mon, Apr 26, 2021 at 8:04 PM Jonathan Cameron <jic23@kernel.org> wrote:
> >
> > From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> >
> > This is set to the same value in devm_iio_device_alloc() so no need to do
> > it again.
> >
> > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> > Cc: Cristian Pop <cristian.pop@analog.com>
> > ---
> >  drivers/iio/dac/ad5766.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/iio/dac/ad5766.c b/drivers/iio/dac/ad5766.c
> > index 79837a4b3a41..b0f180d46394 100644
> > --- a/drivers/iio/dac/ad5766.c
> > +++ b/drivers/iio/dac/ad5766.c
> > @@ -597,7 +597,6 @@ static int ad5766_probe(struct spi_device *spi)
> >         indio_dev->channels = st->chip_info->channels;
> >         indio_dev->num_channels = st->chip_info->num_channels;
> >         indio_dev->info = &ad5766_info;
> > -       indio_dev->dev.parent = &spi->dev;
> >         indio_dev->dev.of_node = spi->dev.of_node;  
> 
> Unrelated to this series.
> This looks like it could do without the of_node assignment as well.
> 
> I probably should have noticed this earlier.

Good point.  Rather than having a separate patch I'll pull that in here
whilst applying if no one shouts.

Thanks,

Jonathan

> 
> >         indio_dev->name = spi_get_device_id(spi)->name;
> >         indio_dev->modes = INDIO_DIRECT_MODE;
> > --
> > 2.31.1
> >  


  reply	other threads:[~2021-04-27 17:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-26 17:02 [PATCH 0/8] iio: cleanup some new instances of manual parent setting Jonathan Cameron
2021-04-26 17:02 ` [PATCH 1/8] iio: accel: bmi088: Drop manual assignment of iio_dev.dev.parent Jonathan Cameron
2021-04-26 17:02 ` [PATCH 2/8] iio: dac: ad5766: Drop duplicate setting " Jonathan Cameron
2021-04-27  7:26   ` Alexandru Ardelean
2021-04-27 17:13     ` Jonathan Cameron [this message]
2021-04-26 17:02 ` [PATCH 3/8] iio: adc: mp2629: Drop duplicate setting iio_dev.dev.parent Jonathan Cameron
2021-04-26 17:02 ` [PATCH 4/8] iio: adc: mt6360: Drop duplicate setting of iio_dev.dev.parent Jonathan Cameron
2021-04-27  7:25   ` Alexandru Ardelean
2021-04-27  8:21     ` Jonathan Cameron
2021-04-26 17:02 ` [PATCH 5/8] iio: adc: ti-ads131e08: " Jonathan Cameron
2021-04-26 17:02 ` [PATCH 6/8] iio: humidity: hdc2010: " Jonathan Cameron
2021-04-26 17:02 ` [PATCH 7/8] iio: position: hid-sensor-custom-intel-hinge: Drop duplicate parent setting Jonathan Cameron
2021-04-26 17:02 ` [PATCH 8/8] iio: common: scmi_sensors: Drop duplicate setting of iio_dev.dev.parent Jonathan Cameron
2021-04-27  7:27 ` [PATCH 0/8] iio: cleanup some new instances of manual parent setting Alexandru Ardelean
2021-05-03 11:37   ` Jonathan Cameron

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=20210427181347.32196fe5@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=ardeleanalex@gmail.com \
    --cc=cristian.pop@analog.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