Skip to content

Commit ee78942

Browse files
pdgendtdanieldegrasse
authored andcommitted
drivers: dac: 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>
1 parent c57d76e commit ee78942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dac/dac_mcux_dac12.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static int mcux_dac12_write_value(const struct device *dev, uint8_t channel, uin
8484
return 0;
8585
}
8686

87-
static const struct dac_driver_api mcux_dac12_driver_api = {
87+
static DEVICE_API(dac, mcux_dac12_driver_api) = {
8888
.channel_setup = mcux_dac12_channel_setup,
8989
.write_value = mcux_dac12_write_value,
9090
};

0 commit comments

Comments
 (0)