Skip to content

Commit dd2a9bc

Browse files
pdgendtfabiobaltieri
authored andcommitted
drivers: peci: Place API into iterable sections
Add wrapper DEVICE_API macro to all peci_driver_api instances. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 566c122 commit dd2a9bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/peci/peci_ite_it8xxx2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static void peci_it8xxx2_isr(const struct device *dev)
301301
k_sem_give(&data->device_sync_sem);
302302
}
303303

304-
static const struct peci_driver_api peci_it8xxx2_driver_api = {
304+
static DEVICE_API(peci, peci_it8xxx2_driver_api) = {
305305
.config = peci_it8xxx2_configure,
306306
.enable = peci_it8xxx2_enable,
307307
.disable = peci_it8xxx2_disable,

drivers/peci/peci_mchp_xec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static void peci_xec_isr(const void *arg)
508508
}
509509
#endif
510510

511-
static const struct peci_driver_api peci_xec_driver_api = {
511+
static DEVICE_API(peci, peci_xec_driver_api) = {
512512
.config = peci_xec_configure,
513513
.enable = peci_xec_enable,
514514
.disable = peci_xec_disable,

drivers/peci/peci_npcx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ static void peci_npcx_isr(const struct device *dev)
225225
k_sem_give(&data->trans_sync_sem);
226226
}
227227

228-
static const struct peci_driver_api peci_npcx_driver_api = {
228+
static DEVICE_API(peci, peci_npcx_driver_api) = {
229229
.config = peci_npcx_configure,
230230
.enable = peci_npcx_enable,
231231
.disable = peci_npcx_disable,

0 commit comments

Comments
 (0)