summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/meson_wdt.c
diff options
context:
space:
mode:
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>2017-04-10 00:00:18 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-04-28 20:51:27 +0200
commitf583a884afecb16fcb8200ebb9956ea369aff57f (patch)
tree54e733c3e4e4c653b769f3963b37e64d0d95c777 /drivers/watchdog/meson_wdt.c
parentplatform/x86: intel_pmc_ipc: Add pmc gcr read/write/update api's (diff)
downloadlinux-f583a884afecb16fcb8200ebb9956ea369aff57f.tar.xz
linux-f583a884afecb16fcb8200ebb9956ea369aff57f.zip
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>
Diffstat (limited to 'drivers/watchdog/meson_wdt.c')
0 files changed, 0 insertions, 0 deletions