watchdog: stm32_iwdg: return -ENOSYS on attempt to disable
The stm32_iwdg watchdog can't be disabled. To have the wd commant report
this fact correctly to the user, the ->set_timeout needs to return -ENOSYS
which is interpreted as "Watchdog cannot be disabled" instead of -EINVAL
which means "Timeout value out of range".

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 218427e commit 309ce31b811c515207a86de28da37d7a481b7212
@Ahmad Fatoum Ahmad Fatoum authored on 12 Nov 2019
Sascha Hauer committed on 13 Nov 2019
Showing 1 changed file
View
drivers/watchdog/stm32_iwdg.c