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:
Pieter De Gendt 2024-11-28 17:08:12 +01:00 committed by Benjamin Cabé
parent d04b3e0323
commit 75b35adac0
4 changed files with 4 additions and 4 deletions

View file

@ -239,7 +239,7 @@ static int fll16m_init(const struct device *dev)
fll16m_work_handler); fll16m_work_handler);
} }
static struct nrf_clock_control_driver_api fll16m_drv_api = { static DEVICE_API(nrf_clock_control, fll16m_drv_api) = {
.std_api = { .std_api = {
.on = api_nosys_on_off, .on = api_nosys_on_off,
.off = api_nosys_on_off, .off = api_nosys_on_off,

View file

@ -171,7 +171,7 @@ static int init_hfxo(const struct device *dev)
return 0; return 0;
} }
static struct nrf_clock_control_driver_api drv_api_hfxo = { static DEVICE_API(nrf_clock_control, drv_api_hfxo) = {
.std_api = { .std_api = {
.on = api_nosys_on_off, .on = api_nosys_on_off,
.off = api_nosys_on_off, .off = api_nosys_on_off,

View file

@ -217,7 +217,7 @@ static int hsfll_init(const struct device *dev)
return 0; return 0;
} }
static struct nrf_clock_control_driver_api hsfll_drv_api = { static DEVICE_API(nrf_clock_control, hsfll_drv_api) = {
.std_api = { .std_api = {
.on = api_nosys_on_off, .on = api_nosys_on_off,
.off = api_nosys_on_off, .off = api_nosys_on_off,

View file

@ -241,7 +241,7 @@ static int lfclk_init(const struct device *dev)
lfclk_work_handler); lfclk_work_handler);
} }
static struct nrf_clock_control_driver_api lfclk_drv_api = { static DEVICE_API(nrf_clock_control, lfclk_drv_api) = {
.std_api = { .std_api = {
.on = api_nosys_on_off, .on = api_nosys_on_off,
.off = api_nosys_on_off, .off = api_nosys_on_off,