Skip to content
Commit 2021ef06 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jonathan Cameron
Browse files

iio: adc: max1027: fix error code in max1027_wait_eoc()



Return -ETIMEDOUT on timeout instead of success.

Fixes: 1f7b4048 ("iio: adc: max1027: Use the EOC IRQ when populated for single reads")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent d7a83bc3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment