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:
parent
024cfe754e
commit
7c956d2ece
21 changed files with 97 additions and 60 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue