1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/auto_init: auto_init_adc -> auto_init_saul_adc

Avoid confusion between peripheral device initialization and SAUL registration
by renaming `auto_init_adc()` to `auto_init_saul_adc()`.
This commit is contained in:
Marian Buschsieweke 2020-10-15 20:06:56 +02:00
parent be261f0138
commit b145f4b0b6
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ static saul_reg_t saul_reg_entries[SAUL_ADC_NUMOF];
*/
extern saul_driver_t adc_saul_driver;
void auto_init_adc(void)
void audo_init_saul_adc(void)
{
for (unsigned i = 0; i < SAUL_ADC_NUMOF; i++) {
const saul_adc_params_t *p = &saul_adc_params[i];

View File

@ -28,8 +28,8 @@
void saul_init_devs(void)
{
if (IS_USED(MODULE_SAUL_ADC)) {
extern void auto_init_adc(void);
auto_init_adc();
extern void audo_init_saul_adc(void);
audo_init_saul_adc();
}
if (IS_USED(MODULE_SAUL_GPIO)) {
extern void auto_init_gpio(void);