mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Fix some warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4318 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include <nuttx/analog/adc.h>
|
#include <nuttx/analog/adc.h>
|
||||||
@@ -137,7 +138,7 @@ int adc_devinit(void)
|
|||||||
if (adc == NULL)
|
if (adc == NULL)
|
||||||
{
|
{
|
||||||
adbg("ERROR: Failed to get ADC interface\n");
|
adbg("ERROR: Failed to get ADC interface\n");
|
||||||
return;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Register the ADC driver at "/dev/adc0" */
|
/* Register the ADC driver at "/dev/adc0" */
|
||||||
@@ -161,4 +162,4 @@ int adc_devinit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_STM32_ADC1 || CONFIG_STM32_ADC2 || CONFIG_STM32_ADC3 */
|
#endif /* CONFIG_STM32_ADC1 || CONFIG_STM32_ADC2 || CONFIG_STM32_ADC3 */
|
||||||
#endif /* CONFIG_ADC */
|
#endif /* CONFIG_ADC */
|
||||||
|
|||||||
Reference in New Issue
Block a user