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>
This commit is contained in:
parent
ee78942c67
commit
70ee055caf
@ -277,7 +277,7 @@ static int gpio_mspm0_init(const struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct gpio_driver_api gpio_mspm0_driver_api = {
|
||||
static DEVICE_API(gpio, gpio_mspm0_driver_api) = {
|
||||
.pin_configure = gpio_mspm0_pin_configure,
|
||||
.port_get_raw = gpio_mspm0_port_get_raw,
|
||||
.port_set_masked_raw = gpio_mspm0_port_set_masked_raw,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user