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
|
@ -14,6 +14,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include <device.h>
|
||||
#include <drivers/ioapic.h>
|
||||
#include <gpio.h>
|
||||
|
@ -312,7 +314,7 @@ int gpio_qmsi_init(struct device *port)
|
|||
#endif /* CONFIG_GPIO_QMSI_AON */
|
||||
|
||||
default:
|
||||
return DEV_FAIL;
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
port->driver_api = &api_funcs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue