Skip to content

Commit 4432d9c

Browse files
pdgendtfabiobaltieri
authored andcommitted
drivers: syscon: Place API into iterable section
Add wrapper DEVICE_API macro to all syscon_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent 36a785a commit 4432d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/syscon/syscon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int syscon_generic_get_size(const struct device *dev, size_t *size)
121121
return 0;
122122
}
123123

124-
static const struct syscon_driver_api syscon_generic_driver_api = {
124+
static DEVICE_API(syscon, syscon_generic_driver_api) = {
125125
.read = syscon_generic_read_reg,
126126
.write = syscon_generic_write_reg,
127127
.get_base = syscon_generic_get_base,

0 commit comments

Comments
 (0)