From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Jonathan Cameron <jic23@kernel.org>
Cc: linux-iio@vger.kernel.org, linux@analog.com,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Radu Sabau" <radu.sabau@analog.com>,
"Song Qiang" <songqiang1304521@gmail.com>,
"Siratul Islam" <siratul.islam@linux.dev>,
"Alisa-Dariana Roman" <alisa.roman@analog.com>,
"Ramona Bolboaca" <ramona.bolboaca@analog.com>,
"Jean-Baptiste Maneyrol" <jean-baptiste.maneyrol@tdk.com>,
"Jonathan Cameron" <jonathan.cameron@oss.qualcomm.com>
Subject: Re: [PATCH 08/15] iio: humidity: hts221: use iio_dev->trig in iio_trigger_notify_done()
Date: Mon, 30 Nov 2026 09:20:58 +0100 [thread overview]
Message-ID: <aw0x6mvJKxvAmqYC@lore-desk> (raw)
In-Reply-To: <20261130-messing-immutable3323-v1-8-f44aa3082603@oss.qualcomm.com>
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
On Nov 30, Jonathan Cameron wrote:
> From: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
>
> The trigger handler should notify the trigger that is currently in use
> by the device, which is iio_dev->trig. As the driver only accepts its
> own trigger, this is always the same as hw->trig, but using
> iio_dev->trig is more obviously correct and matches other IIO drivers.
> It will also remove one confusing difference in a rework series that
> will follow shortly.
>
> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Reviewed-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
> drivers/iio/humidity/hts221_buffer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/humidity/hts221_buffer.c b/drivers/iio/humidity/hts221_buffer.c
> index 25e7eff0436d..ee81d5e73ab5 100644
> --- a/drivers/iio/humidity/hts221_buffer.c
> +++ b/drivers/iio/humidity/hts221_buffer.c
> @@ -183,7 +183,7 @@ static irqreturn_t hts221_buffer_handler_thread(int irq, void *p)
> iio_get_time_ns(iio_dev));
>
> out:
> - iio_trigger_notify_done(hw->trig);
> + iio_trigger_notify_done(iio_dev->trig);
>
> return IRQ_HANDLED;
> }
>
> --
> 2.56.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-11-30 8:21 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 0:13 [PATCH 00/15] IIO: Immutable triggers. Close leaks in registration and use more widely Jonathan Cameron
2026-11-30 0:13 ` [PATCH 01/15] iio: core: add iio_trigger_set_default_immutable() Jonathan Cameron
2026-11-30 0:13 ` [PATCH 02/15] iio: adc: dln2-adc: use iio_trigger_set_default_immutable() Jonathan Cameron
2026-11-30 0:13 ` [PATCH 03/15] iio: core: allow writing the current trigger when it is immutable Jonathan Cameron
2026-11-30 0:13 ` [PATCH 04/15] iio: adc: ad7606: use iio_trigger_set_default_immutable() Jonathan Cameron
2026-11-30 0:13 ` [PATCH 05/15] iio: adc: ad4691: " Jonathan Cameron
2026-11-30 0:13 ` [PATCH 06/15] iio: proximity: vl53l0x-i2c: " Jonathan Cameron
2026-11-30 14:06 ` Siratul Islam
2026-11-30 0:13 ` [PATCH 07/15] iio: proximity: vl53l1x-i2c: " Jonathan Cameron
2026-11-30 14:06 ` Siratul Islam
2026-11-30 0:13 ` [PATCH 08/15] iio: humidity: hts221: use iio_dev->trig in iio_trigger_notify_done() Jonathan Cameron
2026-11-30 8:20 ` Lorenzo Bianconi [this message]
2026-11-30 0:13 ` [PATCH 09/15] iio: humidity: hts221: use iio_trigger_set_default_immutable() Jonathan Cameron
2026-11-30 8:21 ` Lorenzo Bianconi
2026-11-30 0:13 ` [PATCH 10/15] iio: adc: ad_sigma_delta: use an immutable default trigger Jonathan Cameron
2026-11-30 0:13 ` [PATCH 11/15] iio: adc: ad_sigma_delta: drop ad_sd_validate_trigger() Jonathan Cameron
2026-11-30 0:13 ` [PATCH 12/15] iio: imu: inv_mpu6050: use iio_trigger_set_default_immutable() Jonathan Cameron
2026-11-30 0:13 ` [PATCH 13/15] iio: core: add devm_iio_trigger_set_immutable() Jonathan Cameron
2026-11-30 0:13 ` [PATCH 14/15] iio: potentiostat: lmp91000: use devm managed probe Jonathan Cameron
2026-11-30 0:13 ` [PATCH 15/15] iio: potentiostat: lmp91000: undo immutable trigger on unbind 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=aw0x6mvJKxvAmqYC@lore-desk \
--to=lorenzo@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=alisa.roman@analog.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jean-baptiste.maneyrol@tdk.com \
--cc=jic23@kernel.org \
--cc=jonathan.cameron@oss.qualcomm.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux@analog.com \
--cc=nuno.sa@analog.com \
--cc=radu.sabau@analog.com \
--cc=ramona.bolboaca@analog.com \
--cc=siratul.islam@linux.dev \
--cc=songqiang1304521@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.