From 4432d9c1fe11c58e61b357e5614f618b34cc50f3 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Thu, 28 Nov 2024 19:39:25 +0100 Subject: [PATCH] drivers: syscon: Place API into iterable section Add wrapper DEVICE_API macro to all syscon_driver_api instances. Signed-off-by: Pieter De Gendt --- drivers/syscon/syscon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/syscon/syscon.c b/drivers/syscon/syscon.c index 2b880f9f574..b2e621a9516 100644 --- a/drivers/syscon/syscon.c +++ b/drivers/syscon/syscon.c @@ -121,7 +121,7 @@ static int syscon_generic_get_size(const struct device *dev, size_t *size) return 0; } -static const struct syscon_driver_api syscon_generic_driver_api = { +static DEVICE_API(syscon, syscon_generic_driver_api) = { .read = syscon_generic_read_reg, .write = syscon_generic_write_reg, .get_base = syscon_generic_get_base,