Kuppuswamy Sathyanarayanan f583a884af watchdog: iTCO_wdt: cleanup set/unset no_reboot_bit functions
iTCO_wdt no_reboot_bit set/unset functions has lot of common code between
them. So merging these two functions into a single update function would
remove these unnecessary code duplications. This patch fixes this issue
by creating a no_reboot_bit update function to handle both set/unset
functions.

Also checking for iTCO version every time you make no_reboot_bit set/unset
call is inefficient and makes the code look complex. This can be improved
by performing this check once during device probe and selecting the
appropriate no_reboot_bit update function. This patch fixes this issue
by splitting the update function into multiple helper functions.

Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
2017-04-28 21:51:27 +03:00
..
2016-10-03 08:37:41 +02:00
2016-12-16 06:53:56 -08:00
2017-03-01 06:15:10 -08:00
2017-02-24 14:00:23 -08:00
2016-12-24 11:27:45 -08:00
2016-12-24 11:27:45 -08:00
2013-12-10 08:48:15 +01:00
2016-05-14 18:25:56 +02:00
2014-03-31 13:28:20 +02:00