Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_ad559x.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static int gpio_ad559x_pin_interrupt_configure(const struct device *dev,
return -ENOTSUP;
}

static const struct gpio_driver_api gpio_ad559x_api = {
static DEVICE_API(gpio, gpio_ad559x_api) = {
.pin_configure = gpio_ad559x_configure,
.port_get_raw = gpio_ad559x_port_get_raw,
.port_set_masked_raw = gpio_ad559x_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_adp5585.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static int gpio_adp5585_init(const struct device *dev)
return ret;
}

static const struct gpio_driver_api api_table = {
static DEVICE_API(gpio, api_table) = {
.pin_configure = gpio_adp5585_config,
.port_get_raw = gpio_adp5585_port_read,
.port_set_masked_raw = gpio_adp5585_port_set_masked,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_ads114s0x.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static int gpio_ads114s0x_init(const struct device *dev)
return 0;
}

static const struct gpio_driver_api gpio_ads114s0x_api = {
static DEVICE_API(gpio, gpio_ads114s0x_api) = {
.pin_configure = gpio_ads114s0x_config,
.port_set_masked_raw = gpio_ads114s0x_port_set_masked_raw,
.port_set_bits_raw = gpio_ads114s0x_port_set_bits_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_altera_pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static void gpio_altera_irq_handler(const struct device *dev)
gpio_fire_callbacks(&data->cb, dev, port_value);
}

static const struct gpio_driver_api gpio_altera_driver_api = {
static DEVICE_API(gpio, gpio_altera_driver_api) = {
.pin_configure = gpio_altera_configure,
.port_get_raw = gpio_altera_port_get_raw,
.port_set_masked_raw = NULL,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_ambiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ static int ambiq_gpio_init(const struct device *port)
return 0;
}

static const struct gpio_driver_api ambiq_gpio_drv_api = {
static DEVICE_API(gpio, ambiq_gpio_drv_api) = {
.pin_configure = ambiq_gpio_pin_configure,
#ifdef CONFIG_GPIO_GET_CONFIG
.pin_get_config = ambiq_gpio_get_config,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_andes_atcgpio100.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static void gpio_atcgpio100_irq_handler(const struct device *port)

}

static const struct gpio_driver_api gpio_atcgpio100_api = {
static DEVICE_API(gpio, gpio_atcgpio100_api) = {
.pin_configure = gpio_atcgpio100_config,
.port_get_raw = gpio_atcgpio100_port_get_raw,
.port_set_masked_raw = gpio_atcgpio100_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_axp192.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ static int gpio_axp192_manage_callback(const struct device *dev, struct gpio_cal
return gpio_manage_callback(&data->cb_list_gpio, callback, set);
}

static const struct gpio_driver_api gpio_axp192_api = {
static DEVICE_API(gpio, gpio_axp192_api) = {
.pin_configure = gpio_axp192_configure,
.port_get_raw = gpio_axp192_port_get_raw,
.port_set_masked_raw = gpio_axp192_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_b91.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ static int gpio_b91_manage_callback(const struct device *dev,
}

/* GPIO driver APIs structure */
static const struct gpio_driver_api gpio_b91_driver_api = {
static DEVICE_API(gpio, gpio_b91_driver_api) = {
.pin_configure = gpio_b91_pin_configure,
.port_get_raw = gpio_b91_port_get_raw,
.port_set_masked_raw = gpio_b91_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_bcm2711.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ int gpio_bcm2711_init(const struct device *port)
return 0;
}

static const struct gpio_driver_api gpio_bcm2711_api = {
static DEVICE_API(gpio, gpio_bcm2711_api) = {
.pin_configure = gpio_bcm2711_pin_configure,
.port_get_raw = gpio_bcm2711_port_get_raw,
.port_set_masked_raw = gpio_bcm2711_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_bd8lb600fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static int bd8lb600fs_gpio_port_toggle_bits(const struct device *dev, uint32_t m
return result;
}

static const struct gpio_driver_api api_table = {
static DEVICE_API(gpio, api_table) = {
.pin_configure = bd8lb600fs_gpio_pin_configure,
.port_get_raw = bd8lb600fs_gpio_port_get_raw,
.port_set_masked_raw = bd8lb600fs_gpio_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_brcmstb.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static int gpio_brcmstb_port_toggle_bits(const struct device *port, gpio_port_pi
return 0;
}

static const struct gpio_driver_api gpio_brcmstb_api = {
static DEVICE_API(gpio, gpio_brcmstb_api) = {
.pin_configure = gpio_brcmstb_pin_configure,
.port_get_raw = gpio_brcmstb_port_get_raw,
.port_set_masked_raw = gpio_brcmstb_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_cc13xx_cc26xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static int gpio_cc13xx_cc26xx_port_get_direction(const struct device *port, gpio
}
#endif /* CONFIG_GPIO_GET_DIRECTION */

static const struct gpio_driver_api gpio_cc13xx_cc26xx_driver_api = {
static DEVICE_API(gpio, gpio_cc13xx_cc26xx_driver_api) = {
.pin_configure = gpio_cc13xx_cc26xx_config,
.port_get_raw = gpio_cc13xx_cc26xx_port_get_raw,
.port_set_masked_raw = gpio_cc13xx_cc26xx_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_cc32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ static void gpio_cc32xx_port_isr(const struct device *dev)
gpio_fire_callbacks(&data->callbacks, dev, int_status);
}

static const struct gpio_driver_api api_funcs = {
static DEVICE_API(gpio, api_funcs) = {
.pin_configure = gpio_cc32xx_config,
.port_get_raw = gpio_cc32xx_port_get_raw,
.port_set_masked_raw = gpio_cc32xx_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_cmsdk_ahb.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static int gpio_cmsdk_ahb_manage_callback(const struct device *dev,
return gpio_manage_callback(&data->gpio_cb, callback, set);
}

static const struct gpio_driver_api gpio_cmsdk_ahb_drv_api_funcs = {
static DEVICE_API(gpio, gpio_cmsdk_ahb_drv_api_funcs) = {
.pin_configure = gpio_cmsdk_ahb_config,
.port_get_raw = gpio_cmsdk_ahb_port_get_raw,
.port_set_masked_raw = gpio_cmsdk_ahb_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_creg_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static int pin_config(const struct device *dev,
return -ENOTSUP;
}

static const struct gpio_driver_api api_table = {
static DEVICE_API(gpio, api_table) = {
.pin_configure = pin_config,
.port_get_raw = port_get,
.port_set_masked_raw = port_set_masked,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_cy8c95xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static int cy8c95xx_init(const struct device *dev)
return rc;
}

static const struct gpio_driver_api api_table = {
static DEVICE_API(gpio, api_table) = {
.pin_configure = cy8c95xx_config,
.port_get_raw = port_get,
.port_set_masked_raw = port_set_masked,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static int gpio_davinci_port_toggle_bits(const struct device *dev,
return 0;
}

static const struct gpio_driver_api gpio_davinci_driver_api = {
static DEVICE_API(gpio, gpio_davinci_driver_api) = {
.pin_configure = gpio_davinci_configure,
.port_get_raw = gpio_davinci_port_get_raw,
.port_set_masked_raw = gpio_davinci_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_dw.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ static void gpio_dw_isr(const struct device *port)
}
#endif /* DT_ANY_INST_HAS_PROP_STATUS_OKAY(interrupts) */

static const struct gpio_driver_api api_funcs = {
static DEVICE_API(gpio, api_funcs) = {
.pin_configure = gpio_dw_config,
.port_get_raw = gpio_dw_port_get_raw,
.port_set_masked_raw = gpio_dw_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_efinix_sapphire.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static int gpio_efinix_sapphire_init(const struct device *dev)
}

/* API map */
static const struct gpio_driver_api gpio_efinix_sapphire_api = {
static DEVICE_API(gpio, gpio_efinix_sapphire_api) = {
.pin_configure = gpio_efinix_sapphire_config,
.port_get_raw = gpio_efinix_sapphire_port_get_raw,
.port_set_masked_raw = gpio_efinix_sapphire_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_emul.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ static int gpio_emul_port_get_direction(const struct device *port, gpio_port_pin
}
#endif /* CONFIG_GPIO_GET_DIRECTION */

static const struct gpio_driver_api gpio_emul_driver = {
static DEVICE_API(gpio, gpio_emul_driver) = {
.pin_configure = gpio_emul_pin_configure,
#ifdef CONFIG_GPIO_GET_CONFIG
.pin_get_config = gpio_emul_pin_get_config,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_ene_kb1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static uint32_t kb1200_gpio_get_pending_int(const struct device *dev)
return config->gptd_regs->GPTDPF;
}

static const struct gpio_driver_api kb1200_gpio_api = {
static DEVICE_API(gpio, kb1200_gpio_api) = {
.pin_configure = kb1200_gpio_pin_configure,
.port_get_raw = kb1200_gpio_port_get_raw,
.port_set_masked_raw = kb1200_gpio_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_eos_s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ static int gpio_eos_s3_port_get_direction(const struct device *port, gpio_port_p
}
#endif /* CONFIG_GPIO_GET_DIRECTION */

static const struct gpio_driver_api gpio_eos_s3_driver_api = {
static DEVICE_API(gpio, gpio_eos_s3_driver_api) = {
.pin_configure = gpio_eos_s3_configure,
.port_get_raw = gpio_eos_s3_port_get_raw,
.port_set_masked_raw = gpio_eos_s3_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ static int gpio_esp32_init(const struct device *dev)
return 0;
}

static const struct gpio_driver_api gpio_esp32_driver_api = {
static DEVICE_API(gpio, gpio_esp32_driver_api) = {
.pin_configure = gpio_esp32_config,
.port_get_raw = gpio_esp32_port_get_raw,
.port_set_masked_raw = gpio_esp32_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_fxl6408.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ int gpio_fxl6408_init(const struct device *dev)
return 0;
}

static const struct gpio_driver_api gpio_fxl_driver = {
static DEVICE_API(gpio, gpio_fxl_driver) = {
.pin_configure = gpio_fxl6408_pin_config,
.port_get_raw = gpio_fxl6408_port_get_raw,
.port_set_masked_raw = gpio_fxl6408_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_gd32.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static int gpio_gd32_manage_callback(const struct device *dev,
return gpio_manage_callback(&data->callbacks, callback, set);
}

static const struct gpio_driver_api gpio_gd32_api = {
static DEVICE_API(gpio, gpio_gd32_api) = {
.pin_configure = gpio_gd32_configure,
.port_get_raw = gpio_gd32_port_get_raw,
.port_set_masked_raw = gpio_gd32_port_set_masked_raw,
Expand Down
4 changes: 2 additions & 2 deletions drivers/gpio/gpio_gecko.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static void gpio_gecko_common_isr(const struct device *dev)
}
}

static const struct gpio_driver_api gpio_gecko_driver_api = {
static DEVICE_API(gpio, gpio_gecko_driver_api) = {
.pin_configure = gpio_gecko_configure,
#ifdef CONFIG_GPIO_GET_CONFIG
.pin_get_config = gpio_gecko_get_config,
Expand All @@ -372,7 +372,7 @@ static const struct gpio_driver_api gpio_gecko_driver_api = {
.manage_callback = gpio_gecko_manage_callback,
};

static const struct gpio_driver_api gpio_gecko_common_driver_api = {
static DEVICE_API(gpio, gpio_gecko_common_driver_api) = {
.manage_callback = gpio_gecko_manage_callback,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_grgpio2.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static int grgpio_init(const struct device *dev)
return 0;
}

static const struct gpio_driver_api driver_api = {
static DEVICE_API(gpio, driver_api) = {
.pin_configure = pin_configure,
.port_get_raw = port_get_raw,
.port_set_masked_raw = port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_ifx_cat1.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static int gpio_cat1_manage_callback(const struct device *port,
callback, set);
}

static const struct gpio_driver_api gpio_cat1_api = {
static DEVICE_API(gpio, gpio_cat1_api) = {
.pin_configure = gpio_cat1_configure,
.port_get_raw = gpio_cat1_port_get_raw,
.port_set_masked_raw = gpio_cat1_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void imx_gpio_port_isr(const struct device *port)
gpio_fire_callbacks(&data->callbacks, port, int_status);
}

static const struct gpio_driver_api imx_gpio_driver_api = {
static DEVICE_API(gpio, imx_gpio_driver_api) = {
.pin_configure = imx_gpio_configure,
.port_get_raw = imx_gpio_port_get_raw,
.port_set_masked_raw = imx_gpio_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ static int gpio_intel_port_get_raw(const struct device *dev,
return port_get_raw(dev, 0xFFFFFFFF, value, false);
}

static const struct gpio_driver_api gpio_intel_api = {
static DEVICE_API(gpio, gpio_intel_api) = {
.pin_configure = gpio_intel_config,
.manage_callback = gpio_intel_manage_callback,
.port_get_raw = gpio_intel_port_get_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_iproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static int gpio_iproc_manage_callback(const struct device *port, struct gpio_cal
return gpio_manage_callback(&context->cb, callback, set);
}

static const struct gpio_driver_api gpio_iproc_api = {
static DEVICE_API(gpio, gpio_iproc_api) = {
.pin_configure = gpio_iproc_configure,
.port_get_raw = gpio_iproc_port_get_raw,
.port_set_masked_raw = gpio_iproc_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_ite_it8xxx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ static int gpio_ite_pin_interrupt_configure(const struct device *dev,
return 0;
}

static const struct gpio_driver_api gpio_ite_driver_api = {
static DEVICE_API(gpio, gpio_ite_driver_api) = {
.pin_configure = gpio_ite_configure,
#ifdef CONFIG_GPIO_GET_CONFIG
.pin_get_config = gpio_ite_get_config,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_ite_it8xxx2_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ static int gpio_ite_pin_interrupt_configure(const struct device *dev,
return 0;
}

static const struct gpio_driver_api gpio_ite_driver_api = {
static DEVICE_API(gpio, gpio_ite_driver_api) = {
.pin_configure = gpio_ite_configure,
#ifdef CONFIG_GPIO_GET_CONFIG
.pin_get_config = gpio_ite_get_config,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_kscan_ite_it8xxx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static int gpio_kscan_it8xxx2_port_toggle_bits(const struct device *dev,
return 0;
}

static const struct gpio_driver_api gpio_kscan_it8xxx2_driver_api = {
static DEVICE_API(gpio, gpio_kscan_it8xxx2_driver_api) = {
.pin_configure = gpio_kscan_it8xxx2_configure,
#ifdef CONFIG_GPIO_GET_CONFIG
.pin_get_config = gpio_kscan_it8xxx2_get_config,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_litex.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static int gpio_litex_port_get_direction(const struct device *dev, gpio_port_pin
}
#endif /* CONFIG_GPIO_GET_DIRECTION */

static const struct gpio_driver_api gpio_litex_driver_api = {
static DEVICE_API(gpio, gpio_litex_driver_api) = {
.pin_configure = gpio_litex_configure,
.port_get_raw = gpio_litex_port_get_raw,
.port_set_masked_raw = gpio_litex_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_lmp90xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static int gpio_lmp90xxx_init(const struct device *dev)
return 0;
}

static const struct gpio_driver_api gpio_lmp90xxx_api = {
static DEVICE_API(gpio, gpio_lmp90xxx_api) = {
.pin_configure = gpio_lmp90xxx_config,
.port_set_masked_raw = gpio_lmp90xxx_port_set_masked_raw,
.port_set_bits_raw = gpio_lmp90xxx_port_set_bits_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_lpc11u6x.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ static void gpio_lpc11u6x_isr(const void *arg)
#endif
}

static const struct gpio_driver_api gpio_lpc11u6x_driver_api = {
static DEVICE_API(gpio, gpio_lpc11u6x_driver_api) = {
.pin_configure = gpio_lpc11u6x_pin_configure,
.port_get_raw = gpio_lpc11u6x_port_get_raw,
.port_set_masked_raw = gpio_lpc11u6x_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_max14906.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ static int gpio_max14906_init(const struct device *dev)
return ret;
}

static const struct gpio_driver_api gpio_max14906_api = {
static DEVICE_API(gpio, gpio_max14906_api) = {
.pin_configure = gpio_max14906_config,
.port_get_raw = gpio_max14906_port_get_raw,
.port_set_bits_raw = gpio_max14906_port_set_bits_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_max14916.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ static int gpio_max14916_init(const struct device *dev)
return ret;
}

static const struct gpio_driver_api gpio_max14916_api = {
static DEVICE_API(gpio, gpio_max14916_api) = {
.pin_configure = gpio_max14916_config,
.port_get_raw = gpio_max14916_port_get_raw,
.port_set_bits_raw = gpio_max14916_port_set_bits_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_max32.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int api_manage_callback(const struct device *dev, struct gpio_callback *c
return gpio_manage_callback(&(data->cb_list), callback, set);
}

static const struct gpio_driver_api gpio_max32_driver = {
static DEVICE_API(gpio, gpio_max32_driver) = {
.pin_configure = api_pin_configure,
.port_get_raw = api_port_get_raw,
.port_set_masked_raw = api_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_mchp_mss.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static int mss_gpio_manage_callback(const struct device *dev,

return gpio_manage_callback(&data->cb, callback, set);
}
static const struct gpio_driver_api mss_gpio_driver = {
static DEVICE_API(gpio, mss_gpio_driver) = {
.pin_configure = mss_gpio_config,
.port_toggle_bits = mss_gpio_port_toggle_bits,
.port_get_raw = mss_gpio_port_get_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_mchp_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ static void gpio_gpio_xec_port_isr(const struct device *dev)
gpio_fire_callbacks(&data->callbacks, dev, girq_result);
}

static const struct gpio_driver_api gpio_xec_driver_api = {
static DEVICE_API(gpio, gpio_xec_driver_api) = {
.pin_configure = gpio_xec_configure,
.port_get_raw = gpio_xec_port_get_raw,
.port_set_masked_raw = gpio_xec_port_set_masked_raw,
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/gpio_mchp_xec_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ static void gpio_gpio_xec_port_isr(const struct device *dev)
}

/* GPIO driver official API table */
static const struct gpio_driver_api gpio_xec_driver_api = {
static DEVICE_API(gpio, gpio_xec_driver_api) = {
.pin_configure = gpio_xec_configure,
.port_get_raw = gpio_xec_port_get_raw,
.port_set_masked_raw = gpio_xec_port_set_masked_raw,
Expand Down
Loading
Loading