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

@ -139,7 +139,7 @@ static int adc_qmsi_read(struct device *dev, struct adc_seq_table *seq_tbl)
adc_lock(info);
if (qm_adc_set_config(QM_ADC_0, &cfg) != QM_RC_OK) {
ret = DEV_INVALID_CONF;
ret = -EINVAL;
adc_unlock(info);
break;
}
@ -188,7 +188,7 @@ static int adc_qmsi_read(struct device *dev, struct adc_seq_table *seq_tbl)
adc_lock(info);
if (qm_adc_set_config(QM_ADC_0, &cfg) != QM_RC_OK) {
ret = DEV_INVALID_CONF;
ret = -EINVAL;
adc_unlock(info);
break;
}