]> git.baikalelectronics.ru Git - kernel.git/commit
iio: core: Return error for failed read_reg
authorMatt Fornero <matt.fornero@mathworks.com>
Tue, 5 Sep 2017 14:34:10 +0000 (16:34 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 24 Sep 2017 15:58:32 +0000 (16:58 +0100)
commit1a56b37fd54fca3ca0942b8749c0ddf1ee020383
tree42f31a81b456cc4ef4958e3f108c3e9407c0e06e
parent7a9e0a38db26df6075cd8c8b4e67e7da242b536d
iio: core: Return error for failed read_reg

If an IIO device returns an error code for a read access via debugfs, it
is currently ignored by the IIO core (other than emitting an error
message). Instead, return this error code to user space, so upper layers
can detect it correctly.

Signed-off-by: Matt Fornero <matt.fornero@mathworks.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-core.c