drivers: clock_control: Place device APIs in linker sections
Use DEVICE_API macro to place driver API instances into a linker section. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
5a051b4db3
commit
8e2405207e
@ -237,7 +237,7 @@ static int clock_mspm0_init(const struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct clock_control_driver_api clock_mspm0_driver_api = {
|
||||
static DEVICE_API(clock_control, clock_mspm0_driver_api) = {
|
||||
.on = clock_mspm0_on,
|
||||
.off = clock_mspm0_off,
|
||||
.get_rate = clock_mspm0_get_rate,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user