Skip to content

Commit 70ee055

Browse files
pdgendtdanieldegrasse
authored andcommitted
drivers: gpio: 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 ee78942 commit 70ee055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_mspm0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static int gpio_mspm0_init(const struct device *dev)
277277
return 0;
278278
}
279279

280-
static const struct gpio_driver_api gpio_mspm0_driver_api = {
280+
static DEVICE_API(gpio, gpio_mspm0_driver_api) = {
281281
.pin_configure = gpio_mspm0_pin_configure,
282282
.port_get_raw = gpio_mspm0_port_get_raw,
283283
.port_set_masked_raw = gpio_mspm0_port_set_masked_raw,

0 commit comments

Comments
 (0)