Skip to content

Commit

Permalink
drivers: espi: saf: Place API into iterable section
Browse files Browse the repository at this point in the history
Add wrapper DEVICE_API macro to all espi_saf_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 e2cde47 commit 41b0bd1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/espi/espi_saf_mchp_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ static int espi_saf_xec_activate(const struct device *dev)

static int espi_saf_xec_init(const struct device *dev);

static const struct espi_saf_driver_api espi_saf_xec_driver_api = {
static DEVICE_API(espi_saf, espi_saf_xec_driver_api) = {
.config = espi_saf_xec_configuration,
.set_protection_regions = espi_saf_xec_set_pr,
.activate = espi_saf_xec_activate,
Expand Down
2 changes: 1 addition & 1 deletion drivers/espi/espi_saf_mchp_xec_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ static void espi_saf_err_isr(const struct device *dev)
espi_send_callbacks(&data->callbacks, dev, evt);
}

static const struct espi_saf_driver_api espi_saf_xec_driver_api = {
static DEVICE_API(espi_saf, espi_saf_xec_driver_api) = {
.config = espi_saf_xec_configuration,
.set_protection_regions = espi_saf_xec_set_pr,
.activate = espi_saf_xec_activate,
Expand Down
2 changes: 1 addition & 1 deletion drivers/espi/espi_taf_npcx.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ static int espi_taf_npcx_init(const struct device *dev)
return 0;
}

static const struct espi_saf_driver_api espi_taf_npcx_driver_api = {
static DEVICE_API(espi_saf, espi_taf_npcx_driver_api) = {
.config = espi_taf_npcx_configure,
.set_protection_regions = espi_taf_npcx_set_pr,
.activate = espi_taf_npcx_activate,
Expand Down

0 comments on commit 41b0bd1

Please sign in to comment.