Re: [PATCH v5 2/4] iio: adc: adi-axi-adc: define supported iio-backend capabilities

Nuno Sá
2026-02-02T10:32:20Z

On Fri, 2026-01-30 at 09:17 +0000, Tomas Melin wrote:
> axi-adc and axi-ad485x backend variants provide calibration support,
> whereas the axi-ad408x does not. Set accordingly.
>
> Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
> ---

Reviewed-by: Nuno Sá <nuno.sa@analog.com>

>  drivers/iio/adc/adi-axi-adc.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/iio/adc/adi-axi-adc.c b/drivers/iio/adc/adi-axi-adc.c
> index 14fa4238c2b9..133aa6f43a38 100644
> --- a/drivers/iio/adc/adi-axi-adc.c
> +++ b/drivers/iio/adc/adi-axi-adc.c
> @@ -626,6 +626,7 @@ static const struct iio_backend_ops adi_axi_adc_ops = {
>  static const struct iio_backend_info adi_axi_adc_generic = {
>   .name = "axi-adc",
>   .ops = &adi_axi_adc_ops,
> + .caps = IIO_BACKEND_CAP_CALIBRATION | IIO_BACKEND_CAP_BUFFERING,
>  };
>
>  static const struct iio_backend_ops adi_ad485x_ops = {
> @@ -650,6 +651,7 @@ static const struct iio_backend_ops adi_ad485x_ops = {
>  static const struct iio_backend_info axi_ad485x = {
>   .name = "axi-ad485x",
>   .ops = &adi_ad485x_ops,
> + .caps = IIO_BACKEND_CAP_CALIBRATION | IIO_BACKEND_CAP_BUFFERING,
>  };
>
>  static const struct iio_backend_ops adi_ad408x_ops = {
> @@ -670,6 +672,7 @@ static const struct iio_backend_ops adi_ad408x_ops = {
>  static const struct iio_backend_info axi_ad408x = {
>   .name = "axi-ad408x",
>   .ops = &adi_ad408x_ops,
> + .caps = IIO_BACKEND_CAP_BUFFERING,
>  };
>
>  static int adi_axi_adc_probe(struct platform_device *pdev)