watchdog: f71808e_wdt: migrate to new kernel watchdog API
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Mon, 9 Aug 2021 16:20:35 +0000 (18:20 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 26 Oct 2021 19:31:04 +0000 (21:31 +0200)
commit8bea27edc393bdb66b1b586447e97146dce37fbc
tree6bdb594384d59a52255c1fa75ada16ad7298bb1e
parent3a2c489513e9bdd12d4aaf484c9974d216526874
watchdog: f71808e_wdt: migrate to new kernel watchdog API

Migrating the driver lets us drop the watchdog misc device boilerplate
and reduces size by 285 lines. It also brings us support for new
functionality like CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED.

This incurs a slight backwards-compatibility break, because the new
kernel watchdog API doesn't support unloading modules for drivers
whose watchdog hardware is reported to be running.

This means following scenario will be no longer supported:
 - BIOS has enabled watchdog
 - Module is loaded and unloaded without opening watchdog
 - module_exit is expected to succeed and disable watchdog HW

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/35d9dbf57b58c5f003cef31dc256ec2fec044524.1628525954.git-series.a.fatoum@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/Kconfig
drivers/watchdog/f71808e_wdt.c