]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: adc: sd_adc_modulator: define supported iio-backend capabilities
authorTomas Melin <tomas.melin@vaisala.com>
Tue, 10 Feb 2026 10:53:37 +0000 (10:53 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:22 +0000 (08:24 +0000)
This backend supports the added CAP_ENABLE capability.

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>
drivers/iio/adc/sd_adc_modulator.c

index 9f7a75168aac31ef49982905a810c4519ad545e6..218117c45ec8854b04185be3e0e9ad0d2fe1b741 100644 (file)
@@ -77,6 +77,7 @@ static const struct iio_backend_ops sd_backend_ops = {
 static const struct iio_backend_info sd_backend_info = {
        .name = "sd-modulator",
        .ops = &sd_backend_ops,
+       .caps = IIO_BACKEND_CAP_ENABLE,
 };
 
 static int iio_sd_mod_register(struct platform_device *pdev)