Browse Source

drivers: ps2: Place API into iterable section

Add wrapper DEVICE_API macro to all ps2_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
pull/82453/head
Pieter De Gendt 7 months ago committed by Fabio Baltieri
parent
commit
6e81a3e490
  1. 2
      drivers/ps2/ps2_mchp_xec.c
  2. 2
      drivers/ps2/ps2_npcx_channel.c

2
drivers/ps2/ps2_mchp_xec.c

@ -337,7 +337,7 @@ static void ps2_xec_isr(const struct device *dev) @@ -337,7 +337,7 @@ static void ps2_xec_isr(const struct device *dev)
regs->CTRL = MCHP_PS2_CTRL_EN;
}
static const struct ps2_driver_api ps2_xec_driver_api = {
static DEVICE_API(ps2, ps2_xec_driver_api) = {
.config = ps2_xec_configure,
.read = NULL,
.write = ps2_xec_write,

2
drivers/ps2/ps2_npcx_channel.c

@ -96,7 +96,7 @@ static int ps2_npcx_channel_init(const struct device *dev) @@ -96,7 +96,7 @@ static int ps2_npcx_channel_init(const struct device *dev)
return 0;
}
static const struct ps2_driver_api ps2_channel_npcx_driver_api = {
static DEVICE_API(ps2, ps2_channel_npcx_driver_api) = {
.config = ps2_npcx_ch_configure,
.read = NULL,
.write = ps2_npcx_ch_write,

Loading…
Cancel
Save