drivers: stepper: Place API into iterable section

Add wrapper DEVICE_API macro to all stepper_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-28 19:36:41 +01:00 committed by Fabio Baltieri
commit c0adf726ff
3 changed files with 3 additions and 3 deletions

View file

@ -352,7 +352,7 @@ static int gpio_stepper_init(const struct device *dev)
return 0;
}
static const struct stepper_driver_api gpio_stepper_api = {
static DEVICE_API(stepper, gpio_stepper_api) = {
.enable = gpio_stepper_enable,
.move = gpio_stepper_move,
.is_moving = gpio_stepper_is_moving,