drivers: Replace DEV_OK by 0

This patch replaces all occurences of the macro DEV_OK by the actual
value 0 at the driver level. So this patch touch the files under
drivers/, include/ and samples/drivers/.

This patch is part of the effort to transition from DEV_* codes to
errno.h codes.

Change-Id: I69980ecb9755f2fb026de5668ae9c21a4ae62d1e
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
Andre Guedes 2016-03-09 14:01:20 -03:00 committed by Anas Nashif
commit 024cfe754e
71 changed files with 302 additions and 302 deletions

View file

@ -106,7 +106,7 @@ static void adc_qmsi_disable(struct device *dev)
#if (CONFIG_ADC_QMSI_POLL)
static int adc_qmsi_read(struct device *dev, struct adc_seq_table *seq_tbl)
{
int i, ret = DEV_OK;
int i, ret = 0;
qm_adc_xfer_t xfer;
qm_adc_config_t cfg;
@ -161,7 +161,7 @@ static int adc_qmsi_read(struct device *dev, struct adc_seq_table *seq_tbl)
#else
static int adc_qmsi_read(struct device *dev, struct adc_seq_table *seq_tbl)
{
int i, ret = DEV_OK;
int i, ret = 0;
qm_adc_xfer_t xfer;
qm_adc_config_t cfg;
@ -263,7 +263,7 @@ int adc_qmsi_init(struct device *dev)
adc_config_irq();
return DEV_OK;
return 0;
}
struct adc_info adc_info_dev;