drivers: espi: Place API into iterable section
Add wrapper DEVICE_API macro to all espi_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
c896dd370e
commit
bad2bee941
4 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue