Skip to content

Commit

Permalink
drivers: espi: Place API into iterable section
Browse files Browse the repository at this point in the history
Add wrapper DEVICE_API macro to all espi_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
  • Loading branch information
pdgendt authored and fabiobaltieri committed Dec 2, 2024
1 parent c896dd3 commit bad2bee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/espi/espi_it8xxx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ static void espi_it8xxx2_flash_init(const struct device *dev)
/* eSPI driver registration */
static int espi_it8xxx2_init(const struct device *dev);

static const struct espi_driver_api espi_it8xxx2_driver_api = {
static DEVICE_API(espi, espi_it8xxx2_driver_api) = {
.config = espi_it8xxx2_configure,
.get_channel_status = espi_it8xxx2_channel_ready,
.send_vwire = espi_it8xxx2_send_vwire,
Expand Down
2 changes: 1 addition & 1 deletion drivers/espi/espi_mchp_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ static void espi_xec_periph_isr(const struct device *dev)

static int espi_xec_init(const struct device *dev);

static const struct espi_driver_api espi_xec_driver_api = {
static DEVICE_API(espi, espi_xec_driver_api) = {
.config = espi_xec_configure,
.get_channel_status = espi_xec_channel_ready,
.send_vwire = espi_xec_send_vwire,
Expand Down
2 changes: 1 addition & 1 deletion drivers/espi/espi_mchp_xec_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ const struct espi_vw_isr m2s_vwires_isr[] = {

static int espi_xec_init(const struct device *dev);

static const struct espi_driver_api espi_xec_driver_api = {
static DEVICE_API(espi, espi_xec_driver_api) = {
.config = espi_xec_configure,
.get_channel_status = espi_xec_channel_ready,
.send_vwire = espi_xec_send_vwire,
Expand Down
2 changes: 1 addition & 1 deletion drivers/espi/espi_npcx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ void npcx_espi_disable_interrupts(const struct device *dev)
/* eSPI driver registration */
static int espi_npcx_init(const struct device *dev);

static const struct espi_driver_api espi_npcx_driver_api = {
static DEVICE_API(espi, espi_npcx_driver_api) = {
.config = espi_npcx_configure,
.get_channel_status = espi_npcx_channel_ready,
.send_vwire = espi_npcx_send_vwire,
Expand Down

0 comments on commit bad2bee

Please sign in to comment.