]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: dac: adi-axi-dac: define supported iio-backend capabilities
authorTomas Melin <tomas.melin@vaisala.com>
Tue, 10 Feb 2026 10:53:36 +0000 (10:53 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:21 +0000 (08:24 +0000)
Backends support the buffer/enable capabilities so advertise it
while registering in case a frontend makes checks for it.

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/dac/adi-axi-dac.c

index 9cc895bbe51a17e02e9584693d443622e0e1f906..33b07de1bfcb2e52172091f0eeb52f5924cad824 100644 (file)
@@ -869,11 +869,13 @@ static const struct iio_backend_ops axi_ad3552r_ops = {
 static const struct iio_backend_info axi_dac_generic = {
        .name = "axi-dac",
        .ops = &axi_dac_generic_ops,
+       .caps = IIO_BACKEND_CAP_BUFFER | IIO_BACKEND_CAP_ENABLE,
 };
 
 static const struct iio_backend_info axi_ad3552r = {
        .name = "axi-ad3552r",
        .ops = &axi_ad3552r_ops,
+       .caps = IIO_BACKEND_CAP_BUFFER | IIO_BACKEND_CAP_ENABLE,
 };
 
 static const struct regmap_config axi_dac_regmap_config = {