bsp: cvitek: switch to device init function for some drivers

Some drivers use INIT_BOARD_EXPORT, it is not necessary,
it is enough to use INIT_DEVICE_EXPORT for genearl drivers.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
This commit is contained in:
Chen Wang authored and Rbb666 committed 2024-07-18 21:35:35 +08:00
1 parent 937f0dbf5a
commit 7c1d205a4e
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -212,4 +212,4 @@ int rt_hw_adc_init(void)
return RT_EOK;
}
INIT_BOARD_EXPORT(rt_hw_adc_init);
INIT_DEVICE_EXPORT(rt_hw_adc_init);
+1 -1
View File
@@ -601,4 +601,4 @@ int rt_hw_i2c_init(void)
return result;
}
INIT_BOARD_EXPORT(rt_hw_i2c_init);
INIT_DEVICE_EXPORT(rt_hw_i2c_init);
+1 -1
View File
@@ -335,4 +335,4 @@ int rt_hw_pwm_init(void)
}
return RT_EOK;
}
INIT_BOARD_EXPORT(rt_hw_pwm_init);
INIT_DEVICE_EXPORT(rt_hw_pwm_init);
+1 -1
View File
@@ -342,4 +342,4 @@ int rt_hw_spi_init(void)
return ret;
}
INIT_BOARD_EXPORT(rt_hw_spi_init);
INIT_DEVICE_EXPORT(rt_hw_spi_init);
+1 -1
View File
@@ -167,4 +167,4 @@ int rt_hw_wdt_init(void)
return RT_EOK;
}
INIT_BOARD_EXPORT(rt_hw_wdt_init);
INIT_DEVICE_EXPORT(rt_hw_wdt_init);