adc: qmsi: remove obsolete usage of QM_RC_OK
Change-Id: Ia34cc9d8b8b37a9157499be0843c5a42fec9a380 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
05bdba7768
commit
5b202557d3
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,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) {
|
||||
if (qm_adc_set_config(QM_ADC_0, &cfg) != 0) {
|
||||
ret = -EINVAL;
|
||||
adc_unlock(info);
|
||||
break;
|
||||
|
@ -148,7 +148,7 @@ static int adc_qmsi_read(struct device *dev, struct adc_seq_table *seq_tbl)
|
|||
* register to check if the number of samples required has been
|
||||
* captured
|
||||
*/
|
||||
if (qm_adc_convert(QM_ADC_0, &xfer) != QM_RC_OK) {
|
||||
if (qm_adc_convert(QM_ADC_0, &xfer) != 0) {
|
||||
ret = -EIO;
|
||||
adc_unlock(info);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue