watchdog: xen_wdt: use the watchdog subsystem
authorRadu Rendec <rrendec@arista.com>
Wed, 15 Nov 2017 19:34:41 +0000 (19:34 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 28 Dec 2017 19:45:43 +0000 (20:45 +0100)
commit18cffd68e0c44fc09817ea2fb66bebe8a9188093
tree56d288059a0122d60b88eed93002780e1549c3a5
parent477603467009673d0965ca7ec165a09bd0fcb87e
watchdog: xen_wdt: use the watchdog subsystem

Change the xen_wdt driver to use the watchdog subsystem instead of
registering and manipulating the char device directly through the misc
API. This is mainly getting rid of the "write" and "ioctl" methods and
part of the watchdog control logic (which are all implemented by the
watchdog subsystem).

Even though the watchdog subsystem supports registering and handling
multiple watchdog devices at the same time, the xen_wdt driver has an
inherent limitation of only one device due to the way the Xen hypervisor
exposes watchdog functionality. However, the driver can now coexist with
other watchdog devices (supported by different drivers).

Signed-off-by: Radu Rendec <rrendec@arista.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/xen_wdt.c