Skip to content

Commit 856f4f8

Browse files
pdgendtkartben
authored andcommitted
drivers: edac: Place API into iterable section
Add wrapper DEVICE_API macro to all edac_driver_api instances. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 3c0cdd1 commit 856f4f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/edac/edac_ibecc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static int notify_callback_set(const struct device *dev,
257257
return 0;
258258
}
259259

260-
static const struct edac_driver_api api = {
260+
static DEVICE_API(edac, api) = {
261261
#if defined(CONFIG_EDAC_ERROR_INJECT)
262262
/* Error Injection functions */
263263
.inject_set_param1 = inject_set_param1,

tests/subsys/edac/ibecc/src/dummy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* EDAC dummy is used for coverage tests for -ENOSYS returns
1515
*/
1616

17-
static const struct edac_driver_api edac_dummy_api = { 0 };
17+
static DEVICE_API(edac, edac_dummy_api) = { 0 };
1818

1919
DEVICE_DEFINE(dummy_edac, "dummy_edac", NULL, NULL,
2020
NULL, NULL,

0 commit comments

Comments
 (0)