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: dac: adi-axi-dac: define supported iio-backend capabilities

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>

authored by

Tomas Melin and committed by
Jonathan Cameron
9db3e8dd ed3be723

+2
+2
drivers/iio/dac/adi-axi-dac.c
··· 869 869 static const struct iio_backend_info axi_dac_generic = { 870 870 .name = "axi-dac", 871 871 .ops = &axi_dac_generic_ops, 872 + .caps = IIO_BACKEND_CAP_BUFFER | IIO_BACKEND_CAP_ENABLE, 872 873 }; 873 874 874 875 static const struct iio_backend_info axi_ad3552r = { 875 876 .name = "axi-ad3552r", 876 877 .ops = &axi_ad3552r_ops, 878 + .caps = IIO_BACKEND_CAP_BUFFER | IIO_BACKEND_CAP_ENABLE, 877 879 }; 878 880 879 881 static const struct regmap_config axi_dac_regmap_config = {