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:
parent
69453a5d29
commit
024cfe754e
71 changed files with 302 additions and 302 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue