Skip to content
Commit 7ffafd9b authored by Sebastian Głąb's avatar Sebastian Głąb Committed by David Leach
Browse files

drivers: watchdog: wdt_nrfx.c: Fix error code value

Align driver implementation to the watchdog driver API.
https://docs.zephyrproject.org/latest/hardware/peripherals/watchdog.html



int wdt_disable(const struct device *dev)
shall return:
    0 – If successful.
    -EFAULT – If watchdog instance is not enabled.
    -EPERM – If watchdog can not be disabled directly by application code.
    -errno – In case of any other failure.

Signed-off-by: default avatarSebastian Głąb <sebastian.glab@nordicsemi.no>
parent 313d135c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment