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: ad9739a: add backend debugfs interface

Call iio_backend_debugfs_add() to add (if available) the backend debug
interface.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240806-dev-backend-dac-direct-reg-access-v1-2-b84a6e8ee8a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Nuno Sa and committed by
Jonathan Cameron
69eac4e1 24a9453c

+7 -1
+7 -1
drivers/iio/dac/ad9739a.c
··· 431 431 indio_dev->num_channels = ARRAY_SIZE(ad9739a_channels); 432 432 indio_dev->setup_ops = &ad9739a_buffer_setup_ops; 433 433 434 - return devm_iio_device_register(&spi->dev, indio_dev); 434 + ret = devm_iio_device_register(&spi->dev, indio_dev); 435 + if (ret) 436 + return ret; 437 + 438 + iio_backend_debugfs_add(st->back, indio_dev); 439 + 440 + return 0; 435 441 } 436 442 437 443 static const struct of_device_id ad9739a_of_match[] = {