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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue