Skip to content

Commit ff79480

Browse files
pdgendtkartben
authored andcommitted
samples: userspace: prod_consumer: Update API to use DEVICE_API macro
Update the sample driver API to put it in a linker section using the DEVICE_API macro. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent f1c4760 commit ff79480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/userspace/prod_consumer/src/sample_driver_foo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static int sample_driver_foo_state_set(const struct device *dev, bool active)
6565
return 0;
6666
}
6767

68-
static struct sample_driver_api sample_driver_foo_api = {
68+
static DEVICE_API(sample, sample_driver_foo_api) = {
6969
.write = sample_driver_foo_write,
7070
.set_callback = sample_driver_foo_set_callback,
7171
.state_set = sample_driver_foo_state_set

0 commit comments

Comments
 (0)