commit | 2021ef0609009806829aa831f90c815bce1fe756 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Oct 04 16:44:54 2021 +0300 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Tue Oct 19 08:30:24 2021 +0100 |
tree | 2574ac75d9468eb46a937f1fb07cc42b257e6f82 | |
parent | d7a83bc38d8dd11b3df7e0db3739be6ced1667af [diff] |
iio: adc: max1027: fix error code in max1027_wait_eoc() Return -ETIMEDOUT on timeout instead of success. Fixes: 1f7b4048b31b ("iio: adc: max1027: Use the EOC IRQ when populated for single reads") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>