drivers: gpio: Place API into iterable section

Add wrapper DEVICE_API macro to all gpio_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-27 22:48:41 +01:00 committed by Fabio Baltieri
commit 6d178f9cd9
94 changed files with 97 additions and 97 deletions

View file

@ -462,7 +462,7 @@ static int nxp_s32_gpio_port_get_direction(const struct device *dev,
}
#endif /* CONFIG_GPIO_GET_DIRECTION */
static const struct gpio_driver_api gpio_nxp_s32_driver_api = {
static DEVICE_API(gpio, gpio_nxp_s32_driver_api) = {
.pin_configure = nxp_s32_gpio_configure,
.port_get_raw = nxp_s32_gpio_port_get_raw,
.port_set_masked_raw = nxp_s32_gpio_port_set_masked_raw,