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:
parent
be261f0138
commit
b145f4b0b6
@ -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];
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user