drivers: Replace DEV_INVALID_OP by -ENOTSUP

This patch replaces all occurences of the macro DEV_INVALID_OP by
-ENOTSUP 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: I46aec3c65963018c479b01602e4a3eec8650eaff
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
Andre Guedes 2016-03-09 14:54:42 -03:00 committed by Anas Nashif
commit 245e140da6
25 changed files with 116 additions and 88 deletions

View file

@ -115,7 +115,7 @@ static int adc_qmsi_read(struct device *dev, struct adc_seq_table *seq_tbl)
struct adc_info *info = dev->driver_data;
if (qm_adc_get_config(QM_ADC_0, &cfg) != QM_RC_OK) {
return DEV_INVALID_OP;
return -ENOTSUP;
}
for (i = 0; i < seq_tbl->num_entries; i++) {
@ -170,7 +170,7 @@ static int adc_qmsi_read(struct device *dev, struct adc_seq_table *seq_tbl)
struct adc_info *info = dev->driver_data;
if (qm_adc_get_config(QM_ADC_0, &cfg) != QM_RC_OK) {
return DEV_INVALID_OP;
return -ENOTSUP;
}
for (i = 0; i < seq_tbl->num_entries; i++) {