commit | 3d62c78a6eb9a7d67bace9622b66ad51e81c5f9b | [log] [tgz] |
---|---|---|
author | Matt Fornero <matt.fornero@mathworks.com> | Tue Sep 05 16:34:10 2017 +0200 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Sep 24 16:58:32 2017 +0100 |
tree | 42f31a81b456cc4ef4958e3f108c3e9407c0e06e | |
parent | 7ee3b7ebcb74714df6d94c8f500f307e1ee5dda5 [diff] |
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>