From: Markus Elfring <Markus.Elfring@web.de>
To: "Guillaume Stols" <gstols@baylibre.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, "Conor Dooley" <conor+dt@kernel.org>,
"Jonathan Cameron" <jic23@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <michael.hennerich@analog.com>,
"Nuno Sá" <nuno.sa@analog.com>, "Rob Herring" <robh@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
David Lechner <dlechner@baylibre.com>,
Julien Stephan <jstephan@baylibre.com>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: Re: [PATCH v3 8/8] iio: adc: ad7606: switch mutexes to scoped_guard
Date: Sat, 6 Jul 2024 14:56:21 +0200 [thread overview]
Message-ID: <4d47b8c3-2f36-4325-b288-0faa40f876eb@web.de> (raw)
In-Reply-To: <20240702-cleanup-ad7606-v3-8-57fd02a4e2aa@baylibre.com>
> Switching to scoped_guard simplifies the code and avoids to take care to
> unlock the mutex in case of premature return.
Can such a change description become more imperative?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.10-rc6#n94
…
> +++ b/drivers/iio/adc/ad7606.c
…
> @@ -124,19 +122,19 @@ static irqreturn_t ad7606_trigger_handler(int irq, void *p)
…
> ret = ad7606_read_samples(st);
> - if (ret == 0)
> - iio_push_to_buffers_with_timestamp(indio_dev, st->data,
> - iio_get_time_ns(indio_dev));
> + if (ret)
> + goto error_ret;
>
> + iio_push_to_buffers_with_timestamp(indio_dev, st->data,
> + iio_get_time_ns(indio_dev));
> +error_ret:
> iio_trigger_notify_done(indio_dev->trig);
…
I find that these control flow adjustments do not fit to the changelog.
They can be offered in another update step (on demand), can't they?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.10-rc6#n81
There are no scoped_guard() calls performed in your patch.
How do you think about to use a summary phrase like “Switch mutex calls to mutex guard usage”?
Regards,
Markus
next prev parent reply other threads:[~2024-07-06 13:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-02 17:34 [PATCH v3 0/8] iio: adc: ad7606: Improvements Guillaume Stols
2024-07-02 17:34 ` [PATCH v3 1/8] dt-bindings: iio: adc: adi,ad7606: normalize textwidth Guillaume Stols
2024-07-02 17:34 ` [PATCH v3 2/8] dt-bindings: iio: adc: adi,ad7606: improve descriptions Guillaume Stols
2024-07-02 17:34 ` [PATCH v3 3/8] dt-bindings: iio: adc: adi,ad7606: add supply properties Guillaume Stols
2024-07-02 17:34 ` [PATCH v3 4/8] dt-bindings: iio: adc: adi,ad7606: fix example Guillaume Stols
2024-07-02 17:34 ` [PATCH v3 5/8] dt-bindings: iio: adc: adi,ad7606: add conditions Guillaume Stols
2024-07-02 17:34 ` [PATCH v3 6/8] iio: adc: ad7606: fix oversampling gpio array Guillaume Stols
2024-07-03 11:08 ` Nuno Sá
2024-07-02 17:34 ` [PATCH v3 7/8] iio: adc: ad7606: fix standby gpio state to match the documentation Guillaume Stols
2024-07-03 11:09 ` Nuno Sá
2024-07-02 17:34 ` [PATCH v3 8/8] iio: adc: ad7606: switch mutexes to scoped_guard Guillaume Stols
2024-07-03 11:12 ` Nuno Sá
2024-07-06 12:56 ` Markus Elfring [this message]
2024-07-06 12:15 ` [PATCH v3 0/8] iio: adc: ad7606: Improvements Jonathan Cameron
2024-07-06 12:29 ` Konstantin Ryabitsev
2024-07-07 10:38 ` Jonathan Cameron
2024-07-07 11:03 ` 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=4d47b8c3-2f36-4325-b288-0faa40f876eb@web.de \
--to=markus.elfring@web.de \
--cc=Jonathan.Cameron@huawei.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=gstols@baylibre.com \
--cc=jic23@kernel.org \
--cc=jstephan@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=nuno.sa@analog.com \
--cc=robh@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