Skip to content

Commit 75b35ad

Browse files
pdgendtkartben
authored andcommitted
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 <[email protected]>
1 parent d04b3e0 commit 75b35ad

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

drivers/clock_control/clock_control_nrf2_fll16m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static int fll16m_init(const struct device *dev)
239239
fll16m_work_handler);
240240
}
241241

242-
static struct nrf_clock_control_driver_api fll16m_drv_api = {
242+
static DEVICE_API(nrf_clock_control, fll16m_drv_api) = {
243243
.std_api = {
244244
.on = api_nosys_on_off,
245245
.off = api_nosys_on_off,

drivers/clock_control/clock_control_nrf2_hfxo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static int init_hfxo(const struct device *dev)
171171
return 0;
172172
}
173173

174-
static struct nrf_clock_control_driver_api drv_api_hfxo = {
174+
static DEVICE_API(nrf_clock_control, drv_api_hfxo) = {
175175
.std_api = {
176176
.on = api_nosys_on_off,
177177
.off = api_nosys_on_off,

drivers/clock_control/clock_control_nrf2_hsfll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static int hsfll_init(const struct device *dev)
217217
return 0;
218218
}
219219

220-
static struct nrf_clock_control_driver_api hsfll_drv_api = {
220+
static DEVICE_API(nrf_clock_control, hsfll_drv_api) = {
221221
.std_api = {
222222
.on = api_nosys_on_off,
223223
.off = api_nosys_on_off,

drivers/clock_control/clock_control_nrf2_lfclk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static int lfclk_init(const struct device *dev)
241241
lfclk_work_handler);
242242
}
243243

244-
static struct nrf_clock_control_driver_api lfclk_drv_api = {
244+
static DEVICE_API(nrf_clock_control, lfclk_drv_api) = {
245245
.std_api = {
246246
.on = api_nosys_on_off,
247247
.off = api_nosys_on_off,

0 commit comments

Comments
 (0)