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>
diff --git a/drivers/shared_irq/shared_irq.c b/drivers/shared_irq/shared_irq.c
index 181186d..e1b776c 100644
--- a/drivers/shared_irq/shared_irq.c
+++ b/drivers/shared_irq/shared_irq.c
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+#include <errno.h>
+
#include <nanokernel.h>
#include <device.h>
#include <shared_irq.h>
@@ -45,7 +47,7 @@
return 0;
}
}
- return DEV_FAIL;
+ return -EIO;
}
/**
@@ -66,7 +68,7 @@
return 0;
}
}
- return DEV_FAIL;
+ return -EIO;
}
static int last_enabled_isr(struct shared_irq_runtime *clients, int count)
@@ -100,7 +102,7 @@
return 0;
}
}
- return DEV_FAIL;
+ return -EIO;
}
void shared_irq_isr(struct device *dev)