Skip to content

Commit

Permalink
samples: userspace: prod_consumer: Update API to use DEVICE_API macro
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pdgendt authored and kartben committed Jan 24, 2025
1 parent f1c4760 commit ff79480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/userspace/prod_consumer/src/sample_driver_foo.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static int sample_driver_foo_state_set(const struct device *dev, bool active)
return 0;
}

static struct sample_driver_api sample_driver_foo_api = {
static DEVICE_API(sample, sample_driver_foo_api) = {
.write = sample_driver_foo_write,
.set_callback = sample_driver_foo_set_callback,
.state_set = sample_driver_foo_state_set
Expand Down

0 comments on commit ff79480

Please sign in to comment.