Skip to content

Commit 5a051b4

Browse files
pdgendtdanieldegrasse
authored andcommitted
drivers: can: 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 efecfe2 commit 5a051b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/can/can_max32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ static int can_max32_init(const struct device *dev)
682682
return ret;
683683
}
684684

685-
static const struct can_driver_api can_max32_api = {
685+
static DEVICE_API(can, can_max32_api) = {
686686
.get_capabilities = can_max32_get_capabilities,
687687
.set_mode = can_max32_set_mode,
688688
.set_timing = can_max32_set_timing,

0 commit comments

Comments
 (0)