[errno code][-RT_EINVAL] fix that use RT_EINVAL without -

This commit is contained in:
Meco Man
2023-03-16 20:21:43 -04:00
committed by Man, Jianting (Meco)
parent e4e88b2f3e
commit dfddd79b24
136 changed files with 316 additions and 324 deletions
+1 -1
View File
@@ -412,7 +412,7 @@ static rt_err_t swm_pin_irq_enable(struct rt_device *device,
EXTI_Init(gpio_obj->gpio, gpio_obj->pin, EXTI_LOW_LEVEL);
break;
default:
return RT_EINVAL;
return -RT_EINVAL;
}
level = rt_hw_interrupt_disable();
+1 -1
View File
@@ -291,7 +291,7 @@ static rt_err_t swm_pwm_control(struct rt_device_pwm *pwm_device, int cmd, void
case PWM_CMD_GET:
return swm_pwm_get(pwm_device, configuration);
default:
return RT_EINVAL;
return -RT_EINVAL;
}
}
+1 -1
View File
@@ -116,7 +116,7 @@ static rt_err_t swm_spi_configure(struct rt_spi_device *device,
if (configure->mode & RT_SPI_3WIRE)
{
return RT_EINVAL;
return -RT_EINVAL;
}
if (configure->data_width == 8)
+1 -1
View File
@@ -434,7 +434,7 @@ static rt_err_t swm_pin_irq_enable(struct rt_device *device,
EXTI_Init(gpio_obj->gpio, gpio_obj->pin, EXTI_LOW_LEVEL);
break;
default:
return RT_EINVAL;
return -RT_EINVAL;
}
level = rt_hw_interrupt_disable();
+1 -1
View File
@@ -295,7 +295,7 @@ static rt_err_t swm_pwm_control(struct rt_device_pwm *pwm_device, int cmd, void
case PWM_CMD_GET:
return swm_pwm_get(pwm_device, configuration);
default:
return RT_EINVAL;
return -RT_EINVAL;
}
}
+1 -1
View File
@@ -118,7 +118,7 @@ static rt_err_t swm_spi_configure(struct rt_spi_device *device,
if (configure->mode & RT_SPI_3WIRE)
{
return RT_EINVAL;
return -RT_EINVAL;
}
if (configure->data_width == 8)