Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1087d24 authored by Matt Fornero's avatar Matt Fornero Committed by Greg Kroah-Hartman
Browse files

iio: core: Return error for failed read_reg



commit 3d62c78a6eb9a7d67bace9622b66ad51e81c5f9b upstream.

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: default avatarMatt Fornero <matt.fornero@mathworks.com>
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 923f18a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment