drivers: Replace DEV_FAIL by -EIO

This patch replaces all occurences of the macro DEV_FAIL by -EIO
at the driver level. So this patch touch the files under drivers/,
include/ and samples/drivers/ when applicable.

This patch is part of the effort to transition from DEV_* codes to
errno.h codes.

Change-Id: I0594ab5dbe667e074c250129e7c13ce512ac940f
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
Andre Guedes 2016-03-09 14:38:02 -03:00 committed by Anas Nashif
commit 7c956d2ece
21 changed files with 97 additions and 60 deletions

View file

@ -46,6 +46,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <errno.h>
#include <nanokernel.h>
#include <arch/cpu.h>
@ -642,7 +644,7 @@ static int spi_k64_transceive(struct device *dev,
if (spi_data->error) {
spi_data->error = 0;
return DEV_FAIL;
return -EIO;
}
return 0;