drivers: clock_control: nrf: Place API into iterable section
Add wrapper DEVICE_API macro to all nrf_clock_control_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
d04b3e0323
commit
75b35adac0
4 changed files with 4 additions and 4 deletions
|
|
@ -239,7 +239,7 @@ static int fll16m_init(const struct device *dev)
|
|||
fll16m_work_handler);
|
||||
}
|
||||
|
||||
static struct nrf_clock_control_driver_api fll16m_drv_api = {
|
||||
static DEVICE_API(nrf_clock_control, fll16m_drv_api) = {
|
||||
.std_api = {
|
||||
.on = api_nosys_on_off,
|
||||
.off = api_nosys_on_off,
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ static int init_hfxo(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct nrf_clock_control_driver_api drv_api_hfxo = {
|
||||
static DEVICE_API(nrf_clock_control, drv_api_hfxo) = {
|
||||
.std_api = {
|
||||
.on = api_nosys_on_off,
|
||||
.off = api_nosys_on_off,
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ static int hsfll_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct nrf_clock_control_driver_api hsfll_drv_api = {
|
||||
static DEVICE_API(nrf_clock_control, hsfll_drv_api) = {
|
||||
.std_api = {
|
||||
.on = api_nosys_on_off,
|
||||
.off = api_nosys_on_off,
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ static int lfclk_init(const struct device *dev)
|
|||
lfclk_work_handler);
|
||||
}
|
||||
|
||||
static struct nrf_clock_control_driver_api lfclk_drv_api = {
|
||||
static DEVICE_API(nrf_clock_control, lfclk_drv_api) = {
|
||||
.std_api = {
|
||||
.on = api_nosys_on_off,
|
||||
.off = api_nosys_on_off,
|
||||
|
|
|
|||
Loading…
Reference in a new issue