Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Joshua Crofts <joshua.crofts1@gmail.com>
Cc: Moksh Panicker <mokshpanicker.7@gmail.com>,
	nuno.sa@analog.com, Michael.Hennerich@analog.com,
	dlechner@baylibre.com, linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org, skhan@linuxfoundation.org
Subject: Re: [PATCH v3 1/2] iio: adc: ad7779: Remove unused completion field
Date: Thu, 2 Jul 2026 18:01:32 +0100	[thread overview]
Message-ID: <20260702180132.06fc6565@jic23-huawei> (raw)
In-Reply-To: <20260702135428.000005dc@gmail.com>

On Thu, 2 Jul 2026 13:54:28 +0200
Joshua Crofts <joshua.crofts1@gmail.com> wrote:

> On Thu,  2 Jul 2026 11:46:48 +0000
> Moksh Panicker <mokshpanicker.7@gmail.com> wrote:
> 
> > struct ad7779_state contains a completion field that is initialized
> > in ad7779_setup_without_backend() but never waited on or signaled
> > anywhere in the driver. Remove the dead code.
> > 
> > Suggested-by: Joshua Crofts <joshua.crofts1@gmail.com>
> > Signed-off-by: Moksh Panicker <mokshpanicker.7@gmail.com>
> > ---
> >  drivers/iio/adc/ad7779.c | 2 --
> >  1 file changed, 2 deletions(-)
> > 
> > diff --git a/drivers/iio/adc/ad7779.c b/drivers/iio/adc/ad7779.c
> > index 695cc79e78da..c1a99b4c1256 100644
> > --- a/drivers/iio/adc/ad7779.c
> > +++ b/drivers/iio/adc/ad7779.c
> > @@ -143,7 +143,6 @@ struct ad7779_state {
> >  	const struct ad7779_chip_info *chip_info;
> >  	struct clk *mclk;
> >  	struct iio_trigger *trig;
> > -	struct completion completion;
> >  	unsigned int sampling_freq;
> >  	enum ad7779_filter filter_enabled;
> >  	struct iio_backend *back;
> > @@ -852,7 +851,6 @@ static int ad7779_setup_without_backend(struct ad7779_state *st, struct iio_dev
> >  
> >  	indio_dev->trig = iio_trigger_get(st->trig);
> >  
> > -	init_completion(&st->completion);
> >    
> 
> Remove the blank line here as well.
Fixed up and applied.

> 
> >  	ret = devm_iio_triggered_buffer_setup(dev, indio_dev,
> >  					      &iio_pollfunc_store_time,  
> 
> 
> 


  reply	other threads:[~2026-07-02 17:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-02 11:46 [PATCH v3 0/2] iio: adc: ad7779: Remove dead code and redundant error message Moksh Panicker
2026-07-02 11:46 ` [PATCH v3 1/2] iio: adc: ad7779: Remove unused completion field Moksh Panicker
2026-07-02 11:54   ` Joshua Crofts
2026-07-02 17:01     ` Jonathan Cameron [this message]
2026-07-02 11:46 ` [PATCH v3 2/2] iio: adc: ad7779: Remove redundant dev_err_probe() after devm_request_irq() Moksh Panicker
2026-07-02 11:54   ` Joshua Crofts
2026-07-02 17:01     ` 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=20260702180132.06fc6565@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=dlechner@baylibre.com \
    --cc=joshua.crofts1@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mokshpanicker.7@gmail.com \
    --cc=nuno.sa@analog.com \
    --cc=skhan@linuxfoundation.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