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/spi/spi_ambiq_bleif.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static int spi_ambiq_release(const struct device *dev, const struct spi_config *
return 0;
}

static struct spi_driver_api spi_ambiq_driver_api = {
static DEVICE_API(spi, spi_ambiq_driver_api) = {
.transceive = spi_ambiq_transceive,
#ifdef CONFIG_SPI_RTIO
.iodev_submit = spi_rtio_iodev_default_submit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_ambiq_spic.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ static int spi_ambiq_release(const struct device *dev, const struct spi_config *
return 0;
}

static const struct spi_driver_api spi_ambiq_driver_api = {
static DEVICE_API(spi, spi_ambiq_driver_api) = {
.transceive = spi_ambiq_transceive,
#ifdef CONFIG_SPI_RTIO
.iodev_submit = spi_rtio_iodev_default_submit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_ambiq_spid.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static int spi_ambiq_release(const struct device *dev, const struct spi_config *
return 0;
}

static const struct spi_driver_api spi_ambiq_driver_api = {
static DEVICE_API(spi, spi_ambiq_driver_api) = {
.transceive = spi_ambiq_transceive,
.release = spi_ambiq_release,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_andes_atcspi200.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ int spi_atcspi200_init(const struct device *dev)
return 0;
}

static const struct spi_driver_api spi_atcspi200_api = {
static DEVICE_API(spi, spi_atcspi200_api) = {
.transceive = spi_atcspi200_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_atcspi200_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_b91.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ static int spi_b91_release(const struct device *dev,
}

/* SPI driver APIs structure */
static const struct spi_driver_api spi_b91_api = {
static DEVICE_API(spi, spi_b91_api) = {
.transceive = spi_b91_transceive,
.release = spi_b91_release,
#ifdef CONFIG_SPI_ASYNC
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_b_renesas_ra8.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static int ra_spi_b_release(const struct device *dev, const struct spi_config *c
return 0;
}

static const struct spi_driver_api ra_spi_driver_api = {.transceive = ra_spi_b_transceive,
static DEVICE_API(spi, ra_spi_driver_api) = {.transceive = ra_spi_b_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async =
ra_spi_b_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_bitbang.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ int spi_bitbang_release(const struct device *dev,
return 0;
}

static const struct spi_driver_api spi_bitbang_api = {
static DEVICE_API(spi, spi_bitbang_api) = {
.transceive = spi_bitbang_transceive,
.release = spi_bitbang_release,
#ifdef CONFIG_SPI_ASYNC
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_cc13xx_cc26xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static int spi_cc13xx_cc26xx_pm_action(const struct device *dev,
#endif /* CONFIG_PM_DEVICE */


static const struct spi_driver_api spi_cc13xx_cc26xx_driver_api = {
static DEVICE_API(spi, spi_cc13xx_cc26xx_driver_api) = {
.transceive = spi_cc13xx_cc26xx_transceive,
.release = spi_cc13xx_cc26xx_release,
#ifdef CONFIG_SPI_RTIO
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_dw.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ void spi_dw_isr(const struct device *dev)
completed(dev, error);
}

static const struct spi_driver_api dw_spi_api = {
static DEVICE_API(spi, dw_spi_api) = {
.transceive = spi_dw_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_dw_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_emul.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ int spi_emul_register(const struct device *dev, struct spi_emul *emul)

/* Device instantiation */

static const struct spi_driver_api spi_emul_api = {
static DEVICE_API(spi, spi_emul_api) = {
.transceive = spi_emul_io,
#ifdef CONFIG_SPI_RTIO
.iodev_submit = spi_rtio_iodev_default_submit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_esp32_spim.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ static int spi_esp32_release(const struct device *dev,
return 0;
}

static const struct spi_driver_api spi_api = {
static DEVICE_API(spi, spi_api) = {
.transceive = spi_esp32_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_esp32_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_gd32.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ static int spi_gd32_release(const struct device *dev,
return 0;
}

static const struct spi_driver_api spi_gd32_driver_api = {
static DEVICE_API(spi, spi_gd32_driver_api) = {
.transceive = spi_gd32_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_gd32_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_gecko_eusart.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static int spi_gecko_eusart_release(const struct device *dev, const struct spi_c
}

/* Device Instantiation */
static const struct spi_driver_api spi_gecko_eusart_api = {
static DEVICE_API(spi, spi_gecko_eusart_api) = {
.transceive = spi_gecko_eusart_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_gecko_eusart_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_gecko_usart.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ static int spi_gecko_release(const struct device *dev,
}

/* Device Instantiation */
static const struct spi_driver_api spi_gecko_api = {
static DEVICE_API(spi, spi_gecko_api) = {
.transceive = spi_gecko_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_gecko_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_grlib_spimctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static int init(const struct device *dev)
return 0;
}

static struct spi_driver_api api = {
static DEVICE_API(spi, api) = {
.transceive = transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_ifx_cat1.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ static int ifx_cat1_spi_release(const struct device *dev, const struct spi_confi
return 0;
}

static const struct spi_driver_api ifx_cat1_spi_api = {
static DEVICE_API(spi, ifx_cat1_spi_api) = {
.transceive = ifx_cat1_spi_transceive_sync,
#if defined(CONFIG_SPI_ASYNC)
.transceive_async = ifx_cat1_spi_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_it8xxx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ static int spi_it8xxx2_init(const struct device *dev)
return 0;
}

static const struct spi_driver_api spi_it8xxx2_driver_api = {
static DEVICE_API(spi, spi_it8xxx2_driver_api) = {
.transceive = it8xxx2_transceive,
.release = it8xxx2_release,

Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_litex.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static int spi_litex_release(const struct device *dev, const struct spi_config *
}

/* Device Instantiation */
static const struct spi_driver_api spi_litex_api = {
static DEVICE_API(spi, spi_litex_api) = {
.transceive = spi_litex_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_litex_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_litex_litespi.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static int spi_litex_release(const struct device *dev, const struct spi_config *
}

/* Device Instantiation */
static const struct spi_driver_api spi_litex_api = {
static DEVICE_API(spi, spi_litex_api) = {
.transceive = spi_litex_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_litex_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_ll_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ static int spi_stm32_transceive_async(const struct device *dev,
}
#endif /* CONFIG_SPI_ASYNC */

static const struct spi_driver_api api_funcs = {
static DEVICE_API(spi, api_funcs) = {
.transceive = spi_stm32_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_stm32_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_max32.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ static int spi_max32_init(const struct device *dev)
}

/* SPI driver APIs structure */
static const struct spi_driver_api spi_max32_api = {
static DEVICE_API(spi, spi_max32_api) = {
.transceive = api_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = api_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_mchp_mss.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ static int mss_spi_init(const struct device *dev)

#define MICROCHIP_SPI_PM_OPS (NULL)

static const struct spi_driver_api mss_spi_driver_api = {
static DEVICE_API(spi, mss_spi_driver_api) = {
.transceive = mss_spi_transceive_blocking,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = mss_spi_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_mchp_mss_qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ static int mss_qspi_init(const struct device *dev)
return ret;
}

static const struct spi_driver_api mss_qspi_driver_api = {
static DEVICE_API(spi, mss_qspi_driver_api) = {
.transceive = mss_qspi_transceive_blocking,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = mss_qspi_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_mcux_dspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ static int spi_mcux_init(const struct device *dev)
return 0;
}

static const struct spi_driver_api spi_mcux_driver_api = {
static DEVICE_API(spi, spi_mcux_driver_api) = {
.transceive = spi_mcux_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_mcux_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_mcux_ecspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static int spi_mcux_init(const struct device *dev)
return 0;
}

static const struct spi_driver_api spi_mcux_driver_api = {
static DEVICE_API(spi, spi_mcux_driver_api) = {
.transceive = spi_mcux_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_mcux_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_mcux_flexcomm.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ static int spi_mcux_init(const struct device *dev)
return 0;
}

static const struct spi_driver_api spi_mcux_driver_api = {
static DEVICE_API(spi, spi_mcux_driver_api) = {
.transceive = spi_mcux_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_mcux_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_mcux_flexio.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ static int spi_mcux_init(const struct device *dev)
return 0;
}

static const struct spi_driver_api spi_mcux_driver_api = {
static DEVICE_API(spi, spi_mcux_driver_api) = {
.transceive = spi_mcux_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_mcux_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_mcux_lpspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ static int spi_mcux_release(const struct device *dev, const struct spi_config *s
return 0;
}

static const struct spi_driver_api spi_mcux_driver_api = {
static DEVICE_API(spi, spi_mcux_driver_api) = {
.transceive = spi_mcux_transceive_sync,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_mcux_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_npcx_spip.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static int spi_npcx_spip_init(const struct device *dev)
return 0;
}

static struct spi_driver_api spi_npcx_spip_api = {
static DEVICE_API(spi, spi_npcx_spip_api) = {
.transceive = spi_npcx_spip_transceive,
.release = spi_npcx_spip_release,
#ifdef CONFIG_SPI_ASYNC
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_nrfx_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ static int spi_nrfx_release(const struct device *dev,
return 0;
}

static const struct spi_driver_api spi_nrfx_driver_api = {
static DEVICE_API(spi, spi_nrfx_driver_api) = {
.transceive = spi_nrfx_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_nrfx_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_nrfx_spim.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ static int spi_nrfx_release(const struct device *dev,
return 0;
}

static const struct spi_driver_api spi_nrfx_driver_api = {
static DEVICE_API(spi, spi_nrfx_driver_api) = {
.transceive = spi_nrfx_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_nrfx_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_nrfx_spis.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static int spi_nrfx_release(const struct device *dev,
return 0;
}

static const struct spi_driver_api spi_nrfx_driver_api = {
static DEVICE_API(spi, spi_nrfx_driver_api) = {
.transceive = spi_nrfx_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_nrfx_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_numaker.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static int spi_numaker_release(const struct device *dev, const struct spi_config
return 0;
}

static const struct spi_driver_api spi_numaker_driver_api = {
static DEVICE_API(spi, spi_numaker_driver_api) = {
.transceive = spi_numaker_transceive,
#ifdef CONFIG_SPI_RTIO
.iodev_submit = spi_rtio_iodev_default_submit,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_nxp_s32.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ static void spi_nxp_s32_transfer_callback(const struct device *dev, Spi_Ip_Event
}
#endif /*CONFIG_NXP_S32_SPI_INTERRUPT*/

static const struct spi_driver_api spi_nxp_s32_driver_api = {
static DEVICE_API(spi, spi_nxp_s32_driver_api) = {
.transceive = spi_nxp_s32_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_nxp_s32_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_oc_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ int spi_oc_simple_release(const struct device *dev,
return 0;
}

static const struct spi_driver_api spi_oc_simple_api = {
static DEVICE_API(spi, spi_oc_simple_api) = {
.transceive = spi_oc_simple_transceive,
.release = spi_oc_simple_release,
#ifdef CONFIG_SPI_ASYNC
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_opentitan.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static int spi_opentitan_release(const struct device *dev,

/* Device Instantiation */

static const struct spi_driver_api spi_opentitan_api = {
static DEVICE_API(spi, spi_opentitan_api) = {
.transceive = spi_opentitan_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_opentitan_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_pl022.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ static int spi_pl022_release(const struct device *dev,
return 0;
}

static const struct spi_driver_api spi_pl022_api = {
static DEVICE_API(spi, spi_pl022_api) = {
.transceive = spi_pl022_transceive,
#if defined(CONFIG_SPI_ASYNC)
.transceive_async = spi_pl022_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_psoc6.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ static int spi_psoc6_init(const struct device *dev)
return spi_psoc6_release(dev, NULL);
}

static const struct spi_driver_api spi_psoc6_driver_api = {
static DEVICE_API(spi, spi_psoc6_driver_api) = {
.transceive = spi_psoc6_transceive_sync,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_psoc6_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_pw.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ static void spi_pw_isr(const void *arg)
}
#endif

static const struct spi_driver_api pw_spi_api = {
static DEVICE_API(spi, pw_spi_api) = {
.transceive = spi_pw_transceive,
.release = spi_pw_release,
#ifdef CONFIG_SPI_ASYNC
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_renesas_ra.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ static int ra_spi_release(const struct device *dev, const struct spi_config *con
return 0;
}

static const struct spi_driver_api ra_spi_driver_api = {.transceive = ra_spi_transceive,
static DEVICE_API(spi, ra_spi_driver_api) = {.transceive = ra_spi_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = ra_spi_transceive_async,
#endif /* CONFIG_SPI_ASYNC */
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_rpi_pico_pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ int spi_pico_pio_release(const struct device *dev, const struct spi_config *spi_
return 0;
}

static const struct spi_driver_api spi_pico_pio_api = {
static DEVICE_API(spi, spi_pico_pio_api) = {
.transceive = spi_pico_pio_transceive,
.release = spi_pico_pio_release,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_rv32m1_lpspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static int spi_mcux_init(const struct device *dev)
return 0;
}

static const struct spi_driver_api spi_mcux_driver_api = {
static DEVICE_API(spi, spi_mcux_driver_api) = {
.transceive = spi_mcux_transceive,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_mcux_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_sam.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ static int spi_sam_init(const struct device *dev)
return 0;
}

static const struct spi_driver_api spi_sam_driver_api = {
static DEVICE_API(spi, spi_sam_driver_api) = {
.transceive = spi_sam_transceive_sync,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_sam_transceive_async,
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_sam0.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ static int spi_sam0_init(const struct device *dev)
return 0;
}

static const struct spi_driver_api spi_sam0_driver_api = {
static DEVICE_API(spi, spi_sam0_driver_api) = {
.transceive = spi_sam0_transceive_sync,
#ifdef CONFIG_SPI_ASYNC
.transceive_async = spi_sam0_transceive_async,
Expand Down
Loading
Loading