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

@ -721,7 +721,7 @@ static int tmc5041_stepper_init(const struct device *dev)
.stepper = DEVICE_DT_GET(child),};
#define TMC5041_STEPPER_API_DEFINE(child) \
static const struct stepper_driver_api tmc5041_stepper_api_##child = { \
static DEVICE_API(stepper, tmc5041_stepper_api_##child) = { \
.enable = tmc5041_stepper_enable, \
.is_moving = tmc5041_stepper_is_moving, \
.move = tmc5041_stepper_move, \