diff --git a/drivers/gpio/gpio_cc23x0.c b/drivers/gpio/gpio_cc23x0.c index 643766e255d..b39c7b3ec9d 100644 --- a/drivers/gpio/gpio_cc23x0.c +++ b/drivers/gpio/gpio_cc23x0.c @@ -256,7 +256,7 @@ static int gpio_cc23x0_init(const struct device *dev) return 0; } -static const struct gpio_driver_api gpio_cc23x0_driver_api = { +static DEVICE_API(gpio, gpio_cc23x0_driver_api) = { .pin_configure = gpio_cc23x0_config, #ifdef CONFIG_GPIO_GET_CONFIG .pin_get_config = gpio_cc23x0_get_config, diff --git a/drivers/gpio/gpio_mfxstm32l152.c b/drivers/gpio/gpio_mfxstm32l152.c index ede0740df8d..bf2e57c138a 100644 --- a/drivers/gpio/gpio_mfxstm32l152.c +++ b/drivers/gpio/gpio_mfxstm32l152.c @@ -612,7 +612,7 @@ static int mfxstm32l152_init(const struct device *dev) return ret; } -static const struct gpio_driver_api mfxstm32l152_drv_api = { +static DEVICE_API(gpio, mfxstm32l152_drv_api) = { .pin_configure = mfxstm32l152_configure, .port_get_raw = mfxstm32l152_port_get_raw, .port_set_masked_raw = NULL,