drivers: Replace DEV_INVALID_CONF by -EINVAL

This patch replaces all occurences of the macro DEV_INVALID_CONF by
-EINVAL 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: Idae0d5af8dd780416977c9261a5fb6188c3aab64
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
Andre Guedes 2016-03-09 15:22:04 -03:00 committed by Anas Nashif
commit b3cb3a1f68
27 changed files with 83 additions and 70 deletions

View file

@ -183,7 +183,7 @@ static inline int gpio_qmsi_config(struct device *port, int access_op,
{
if (((flags & GPIO_INT) && (flags & GPIO_DIR_OUT)) ||
((flags & GPIO_DIR_IN) && (flags & GPIO_DIR_OUT))) {
return DEV_INVALID_CONF;
return -EINVAL;
}
if (access_op == GPIO_ACCESS_BY_PIN) {