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:
parent
245e140da6
commit
b3cb3a1f68
27 changed files with 83 additions and 70 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue