]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: lantiq: Convert to watchdog_device
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 13 Sep 2018 21:32:10 +0000 (23:32 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 2 Oct 2018 11:32:26 +0000 (13:32 +0200)
commitc5a71fdf3a87f0bede34fe0c48970d86427face5
tree5f43fbd3ec3892e0d9726ebf8d327672b87d3267
parent4b16e38e490415abf0f51bd4714e2d1512dad508
watchdog: lantiq: Convert to watchdog_device

Instead of doing the ioctl handling manually just use register a
watchdog_device and let the watchdog framework do the ioctl handling.

This also removes the ltq_wdt_bootstatus_set typedef and replaces it
with a structure providing the chip specific functions pointer.
The watchdog_init_timeout() function is now used and the initial timeout
can be provided in device tree.
If the watchdog was already activated it will not be stopped any more,
but the settings from the driver will be used and the watchdog subsystem
will take care.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/Kconfig
drivers/watchdog/lantiq_wdt.c