watchdog: i6300esb: use the watchdog subsystem
authorRadu Rendec <rrendec@arista.com>
Thu, 26 Oct 2017 16:10:13 +0000 (17:10 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 28 Dec 2017 19:45:17 +0000 (20:45 +0100)
commit7af4ac8772a8f9af40f998671e6d09f5de137854
treeb48e5a88d031e5dab728a67da47375fed39e6963
parent838534e50e2e5c1e644e30ab6cb28da88eb31368
watchdog: i6300esb: use the watchdog subsystem

Change the i6300esb driver to use the watchdog subsystem instead of the
legacy watchdog API. This is mainly just 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 i6300esb driver still
has a limitation of only one i6300esb device due to some global variable
usage that comes from the original design. 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/i6300esb.c