doc: migration-guide: 4.2: add migration guide entry for enable

- Add migration guide entry for enable->enable/disable function
- Add stepper_disable to stepper.rst

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
This commit is contained in:
Jilay Pandya 2025-03-21 19:25:21 +01:00 committed by Benjamin Cabé
parent d18f49132c
commit 6bfea730b1
3 changed files with 7 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Configure Stepper Driver
and :c:func:`stepper_get_actual_position`.
- Set **step interval** in nanoseconds between steps using :c:func:`stepper_set_microstep_interval`
- **Enable** the stepper driver using :c:func:`stepper_enable`.
- **Disable** the stepper driver using :c:func:`stepper_disable`.
Control Stepper
===============

View File

@ -196,6 +196,12 @@ Modem
:kconfig:option:`CONFIG_MODEM_CMUX_WORK_BUFFER_SIZE` and :kconfig:option:`CONFIG_MODEM_CMUX_MTU`.
Stepper
=======
* Refactored the ``stepper_enable(const struct device * dev, bool enable)`` function to
:c:func:`stepper_enable` & :c:func:`stepper_disable`.
Bluetooth
*********

View File

@ -76,7 +76,6 @@ static int a4979_stepper_enable(const struct device *dev)
static int a4979_stepper_disable(const struct device *dev)
{
int ret;
const struct a4979_config *config = dev->config;
struct a4979_data *data = dev->data;