Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: adi-axi-adc: define supported iio-backend capabilities

axi-adc and axi-ad485x backend variants provide calibration support,
whereas the axi-ad408x does not. Set accordingly.

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Tomas Melin and committed by
Jonathan Cameron
ed3be723 88440208

+5
+5
drivers/iio/adc/adi-axi-adc.c
··· 621 621 static const struct iio_backend_info adi_axi_adc_generic = { 622 622 .name = "axi-adc", 623 623 .ops = &adi_axi_adc_ops, 624 + .caps = IIO_BACKEND_CAP_CALIBRATION | IIO_BACKEND_CAP_BUFFER | 625 + IIO_BACKEND_CAP_ENABLE, 624 626 }; 625 627 626 628 static const struct iio_backend_ops adi_ad485x_ops = { ··· 647 645 static const struct iio_backend_info axi_ad485x = { 648 646 .name = "axi-ad485x", 649 647 .ops = &adi_ad485x_ops, 648 + .caps = IIO_BACKEND_CAP_CALIBRATION | IIO_BACKEND_CAP_BUFFER | 649 + IIO_BACKEND_CAP_ENABLE, 650 650 }; 651 651 652 652 static const struct iio_backend_ops adi_ad408x_ops = { ··· 669 665 static const struct iio_backend_info axi_ad408x = { 670 666 .name = "axi-ad408x", 671 667 .ops = &adi_ad408x_ops, 668 + .caps = IIO_BACKEND_CAP_BUFFER | IIO_BACKEND_CAP_ENABLE, 672 669 }; 673 670 674 671 static int adi_axi_adc_probe(struct platform_device *pdev)