We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd2a9bc commit 6e81a3eCopy full SHA for 6e81a3e
drivers/ps2/ps2_mchp_xec.c
@@ -337,7 +337,7 @@ static void ps2_xec_isr(const struct device *dev)
337
regs->CTRL = MCHP_PS2_CTRL_EN;
338
}
339
340
-static const struct ps2_driver_api ps2_xec_driver_api = {
+static DEVICE_API(ps2, ps2_xec_driver_api) = {
341
.config = ps2_xec_configure,
342
.read = NULL,
343
.write = ps2_xec_write,
drivers/ps2/ps2_npcx_channel.c
@@ -96,7 +96,7 @@ static int ps2_npcx_channel_init(const struct device *dev)
96
return 0;
97
98
99
-static const struct ps2_driver_api ps2_channel_npcx_driver_api = {
+static DEVICE_API(ps2, ps2_channel_npcx_driver_api) = {
100
.config = ps2_npcx_ch_configure,
101
102
.write = ps2_npcx_ch_write,
0 commit comments