]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: backend: add debugFs interface
authorNuno Sa <nuno.sa@analog.com>
Fri, 2 Aug 2024 14:27:00 +0000 (16:27 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 13:36:45 +0000 (14:36 +0100)
commitcdf01e0809a4c6c7877ea52401c2a6679df7aed6
tree10286bf7a44935dbdd36cc25178858864477b570
parent2256f37e24b1979f9a97de0b76cabbf8544a8aff
iio: backend: add debugFs interface

This adds a basic debugfs interface for backends. Two new ops are being
added:

 * debugfs_reg_access: Analogous to the core IIO one but for backend
   devices.
 * debugfs_print_chan_status: One useful usecase for this one is for
   testing test tones in a digital interface and "ask" the backend to
   dump more details on why a test tone might have errors.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240802-dev-iio-backend-add-debugfs-v2-2-4cb62852f0d0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/ABI/testing/debugfs-iio-backend [new file with mode: 0644]
MAINTAINERS
drivers/iio/industrialio-backend.c
include/linux/iio/backend.h