* [PATCH] iio: adc: ad7124: add ext attributes to temperature channel
@ 2025-09-23 20:33 David Lechner
2025-09-27 18:20 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: David Lechner @ 2025-09-23 20:33 UTC (permalink / raw)
To: Michael Hennerich, Jonathan Cameron, Nuno Sá, Andy Shevchenko
Cc: linux-iio, linux-kernel, David Lechner
Use the same .ext_info for the temperature channel as for the voltage
channels. In the ADC, these all go though a mux to select the source
and otherwise operate the same.
These attributes probably won't be used much, but since it is trivial
to add this, we might as well include them.
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
drivers/iio/adc/ad7124.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c
index 374e39736584f55c1290db3e257dff2c60f884d2..7ed31399a875b76be08491f56acff55032c95ced 100644
--- a/drivers/iio/adc/ad7124.c
+++ b/drivers/iio/adc/ad7124.c
@@ -1348,6 +1348,7 @@ static int ad7124_parse_channel_config(struct iio_dev *indio_dev,
},
.address = num_channels,
.scan_index = num_channels,
+ .ext_info = ad7124_calibsys_ext_info,
};
}
---
base-commit: 411e8b72c181e4f49352c12ced0fd8426eb683aa
change-id: 20250923-iio-adc-ad7124-add-ext-attributes-to-temperature-channel-dd963150dea9
Best regards,
--
David Lechner <dlechner@baylibre.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: adc: ad7124: add ext attributes to temperature channel
2025-09-23 20:33 [PATCH] iio: adc: ad7124: add ext attributes to temperature channel David Lechner
@ 2025-09-27 18:20 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2025-09-27 18:20 UTC (permalink / raw)
To: David Lechner
Cc: Michael Hennerich, Nuno Sá,
Andy Shevchenko, linux-iio, linux-kernel
On Tue, 23 Sep 2025 15:33:18 -0500
David Lechner <dlechner@baylibre.com> wrote:
> Use the same .ext_info for the temperature channel as for the voltage
> channels. In the ADC, these all go though a mux to select the source
> and otherwise operate the same.
>
> These attributes probably won't be used much, but since it is trivial
> to add this, we might as well include them.
>
> Signed-off-by: David Lechner <dlechner@baylibre.com>
Seems unlikely this with clash with the fixes in flight so
applied to the testing branch of iio.git
Thanks,
Jonathan
> ---
> drivers/iio/adc/ad7124.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c
> index 374e39736584f55c1290db3e257dff2c60f884d2..7ed31399a875b76be08491f56acff55032c95ced 100644
> --- a/drivers/iio/adc/ad7124.c
> +++ b/drivers/iio/adc/ad7124.c
> @@ -1348,6 +1348,7 @@ static int ad7124_parse_channel_config(struct iio_dev *indio_dev,
> },
> .address = num_channels,
> .scan_index = num_channels,
> + .ext_info = ad7124_calibsys_ext_info,
> };
> }
>
>
> ---
> base-commit: 411e8b72c181e4f49352c12ced0fd8426eb683aa
> change-id: 20250923-iio-adc-ad7124-add-ext-attributes-to-temperature-channel-dd963150dea9
>
> Best regards,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-27 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-23 20:33 [PATCH] iio: adc: ad7124: add ext attributes to temperature channel David Lechner
2025-09-27 18:20 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®