Skip to content

Commit 6e81a3e

Browse files
pdgendtfabiobaltieri
authored andcommitted
drivers: ps2: Place API into iterable section
Add wrapper DEVICE_API macro to all ps2_driver_api instances. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent dd2a9bc commit 6e81a3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/ps2/ps2_mchp_xec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static void ps2_xec_isr(const struct device *dev)
337337
regs->CTRL = MCHP_PS2_CTRL_EN;
338338
}
339339

340-
static const struct ps2_driver_api ps2_xec_driver_api = {
340+
static DEVICE_API(ps2, ps2_xec_driver_api) = {
341341
.config = ps2_xec_configure,
342342
.read = NULL,
343343
.write = ps2_xec_write,

drivers/ps2/ps2_npcx_channel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int ps2_npcx_channel_init(const struct device *dev)
9696
return 0;
9797
}
9898

99-
static const struct ps2_driver_api ps2_channel_npcx_driver_api = {
99+
static DEVICE_API(ps2, ps2_channel_npcx_driver_api) = {
100100
.config = ps2_npcx_ch_configure,
101101
.read = NULL,
102102
.write = ps2_npcx_ch_write,

0 commit comments

Comments
 (0)