@@ -168,7 +168,7 @@ typedef int (*stepper_enable_constant_velocity_mode_t)(const struct device *dev,
168168/**
169169 * @brief Stepper Motor Controller API
170170 */
171- __subsystem struct stepper_api {
171+ __subsystem struct stepper_driver_api {
172172 stepper_enable_t enable ;
173173 stepper_move_t move ;
174174 stepper_set_max_velocity_t set_max_velocity ;
@@ -198,7 +198,7 @@ __syscall int stepper_enable(const struct device *dev, const bool enable);
198198
199199static inline int z_impl_stepper_enable (const struct device * dev , const bool enable )
200200{
201- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
201+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
202202
203203 return api -> enable (dev , enable );
204204}
@@ -222,7 +222,7 @@ __syscall int stepper_move(const struct device *dev, int32_t micro_steps,
222222static inline int z_impl_stepper_move (const struct device * dev , const int32_t micro_steps ,
223223 struct k_poll_signal * async )
224224{
225- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
225+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
226226
227227 return api -> move (dev , micro_steps , async );
228228}
@@ -248,7 +248,7 @@ __syscall int stepper_set_max_velocity(const struct device *dev, uint32_t micro_
248248static inline int z_impl_stepper_set_max_velocity (const struct device * dev ,
249249 const uint32_t micro_steps_per_second )
250250{
251- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
251+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
252252
253253 return api -> set_max_velocity (dev , micro_steps_per_second );
254254}
@@ -270,7 +270,7 @@ __syscall int stepper_set_micro_step_res(const struct device *dev,
270270static inline int z_impl_stepper_set_micro_step_res (const struct device * dev ,
271271 enum micro_step_resolution resolution )
272272{
273- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
273+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
274274
275275 if (api -> set_micro_step_res == NULL ) {
276276 return - ENOSYS ;
@@ -294,7 +294,7 @@ __syscall int stepper_get_micro_step_res(const struct device *dev,
294294static inline int z_impl_stepper_get_micro_step_res (const struct device * dev ,
295295 enum micro_step_resolution * resolution )
296296{
297- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
297+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
298298
299299 if (api -> get_micro_step_res == NULL ) {
300300 return - ENOSYS ;
@@ -316,7 +316,7 @@ __syscall int stepper_set_actual_position(const struct device *dev, int32_t valu
316316
317317static inline int z_impl_stepper_set_actual_position (const struct device * dev , const int32_t value )
318318{
319- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
319+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
320320
321321 if (api -> set_actual_position == NULL ) {
322322 return - ENOSYS ;
@@ -338,7 +338,7 @@ __syscall int stepper_get_actual_position(const struct device *dev, int32_t *val
338338
339339static inline int z_impl_stepper_get_actual_position (const struct device * dev , int32_t * value )
340340{
341- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
341+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
342342
343343 if (api -> get_actual_position == NULL ) {
344344 return - ENOSYS ;
@@ -366,7 +366,7 @@ __syscall int stepper_set_target_position(const struct device *dev, int32_t valu
366366static inline int z_impl_stepper_set_target_position (const struct device * dev , const int32_t value ,
367367 struct k_poll_signal * async )
368368{
369- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
369+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
370370
371371 if (api -> set_target_position == NULL ) {
372372 return - ENOSYS ;
@@ -388,7 +388,7 @@ __syscall int stepper_is_moving(const struct device *dev, bool *is_moving);
388388
389389static inline int z_impl_stepper_is_moving (const struct device * dev , bool * is_moving )
390390{
391- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
391+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
392392
393393 if (api -> is_moving == NULL ) {
394394 return - ENOSYS ;
@@ -421,7 +421,7 @@ __syscall int stepper_enable_constant_velocity_mode(const struct device *dev,
421421static inline int z_impl_stepper_enable_constant_velocity_mode (
422422 const struct device * dev , const enum stepper_direction direction , const uint32_t value )
423423{
424- const struct stepper_api * api = (const struct stepper_api * )dev -> api ;
424+ const struct stepper_driver_api * api = (const struct stepper_driver_api * )dev -> api ;
425425
426426 if (api -> enable_constant_velocity_mode == NULL ) {
427427 return - ENOSYS ;
0 commit comments