]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: backend: print message in case op is not implemented
authorNuno Sa <nuno.sa@analog.com>
Tue, 9 Jul 2024 11:14:29 +0000 (13:14 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:36 +0000 (10:13 +0100)
commitdd97cdd520ed678036fd154b852da50a90496cee
tree60b782ccbe0a2feccfdd8934a5d3b9dc146a8a46
parent8585632a8600d26d4e6b7246d375a9c3a344f0d2
iio: backend: print message in case op is not implemented

For APIs that have a return value, -EOPNOTSUPP is returned in case the
backend does not support the functionality. However, for APIs that do
not have a return value we are left in silence. Hence, at least print a
debug message in case the callback is not implemented by the backend.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240709-dev-iio-backend-add-debugfs-v1-2-fb4b8f2373c7@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-backend.c