public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "David Lechner" <dlechner@baylibre.com>,
	"Andy Shevchenko" <andy.shevchenko@gmail.com>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/6] iio: adc: ad7124: use guard(mutex) to simplify return paths
Date: Sat, 13 Sep 2025 14:40:12 +0100	[thread overview]
Message-ID: <20250913144012.0e6befcb@jic23-huawei> (raw)
In-Reply-To: <aMRhfvi88aoWRZao@smile.fi.intel.com>

On Fri, 12 Sep 2025 21:07:58 +0300
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:

> On Fri, Sep 12, 2025 at 12:41:08PM -0500, David Lechner wrote:
> > On 9/12/25 12:15 PM, Andy Shevchenko wrote:  
> > > On Fri, Sep 12, 2025 at 09:19:36AM -0500, David Lechner wrote:  
> > >> On 9/11/25 11:39 PM, Andy Shevchenko wrote:  
> > >>> On Fri, Sep 12, 2025 at 12:42 AM David Lechner <dlechner@baylibre.com> wrote:  
> > >>>>
> > >>>> Use guard(mutex) in a couple of functions to allow direct returns. This
> > >>>> simplifies the code a bit and will make later changes easier.  
> > >>>
> > >>> From this and the patch it's unclear if cleanup.h was already there or
> > >>> not. If not, this patch misses it, if yes, the commit message should
> > >>> be different.  
> > >>
> > >> cleanup.h is already there. I'm not sure what would need to be different
> > >> in the commit message though.  
> > > 
> > > I expect something like "finish converting the driver to use guard()()..."  
> > 
> > cleanup.h was previously included for __free(), so the guard() stuff
> > is all new.  
> 
> Okay, then something like "Cover the lock handling using guard()()..."
> The point I'm trying to make is that "Use $FOO API/etc" without new header
> being included either:
> 1) missing inclusion (proxying);
> 2) start using of a new API from the library/header that we already use for
> another API, but without mentioning that.
> 
I went with the far from subtle solution of adding a line to the commit log
that says

cleanup.h is already included for prior use of __free()

Seemed like that would be enough for Andy's request and so I added
his tag (as given to the cover letter).

Jonathan




  reply	other threads:[~2025-09-13 13:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-11 21:41 [PATCH v2 0/6] iio: adc: ad7124: add filter support David Lechner
2025-09-11 21:42 ` [PATCH v2 1/6] iio: adc: ad7124: use clamp() David Lechner
2025-09-11 21:42 ` [PATCH v2 2/6] iio: adc: ad7124: use read_avail() for scale_available David Lechner
2025-09-11 21:42 ` [PATCH v2 3/6] iio: adc: ad7124: use guard(mutex) to simplify return paths David Lechner
2025-09-12  4:39   ` Andy Shevchenko
2025-09-12 14:19     ` David Lechner
2025-09-12 17:15       ` Andy Shevchenko
2025-09-12 17:41         ` David Lechner
2025-09-12 18:07           ` Andy Shevchenko
2025-09-13 13:40             ` Jonathan Cameron [this message]
2025-09-11 21:42 ` [PATCH v2 4/6] iio: adc: ad7124: support fractional sampling_frequency David Lechner
2025-09-12  4:45   ` Andy Shevchenko
2025-09-12 14:25     ` David Lechner
2025-09-11 21:42 ` [PATCH v2 5/6] iio: adc: ad7124: add filter support David Lechner
2025-09-12  4:49   ` Andy Shevchenko
2025-09-12 14:27     ` David Lechner
2025-09-13 13:42       ` Jonathan Cameron
2025-09-15  6:46         ` Andy Shevchenko
2025-09-11 21:42 ` [PATCH v2 6/6] iio: ABI: document "sinc4+rej60" filter_type David Lechner
2025-09-12  4:50 ` [PATCH v2 0/6] iio: adc: ad7124: add filter support Andy Shevchenko
2025-09-13 13:43   ` 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=20250913144012.0e6befcb@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    /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