diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-12-24 13:04:13 -0800 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2018-01-21 12:56:36 +0100 |
commit | 5bbecc5d3454d1069baf061a2cf0f04d0f0b9e7f (patch) | |
tree | 2c888f01d136b63e3789289493960964275de201 /drivers/watchdog/sp5100_tco.h | |
parent | fd8f9093a07306036cf63eda35e3357db3387d3a (diff) | |
download | linux-5bbecc5d3454d1069baf061a2cf0f04d0f0b9e7f.tar.gz linux-5bbecc5d3454d1069baf061a2cf0f04d0f0b9e7f.tar.bz2 linux-5bbecc5d3454d1069baf061a2cf0f04d0f0b9e7f.zip |
watchdog: sp5100_tco: Clean up function and variable names
Use more common function and variable names.
Use pdev instead of dev for platform device.
Use sp5100_tco_probe() instead of sp5100_tco_init() for the probe function.
Drop sp5100_tco_cleanup(); just move the code into sp5100_tco_remove().
Use sp5100_tco_init() instead of sp5100_tco_init_module() for the module
initialization function.
Use sp5100_tco_exit() instead of sp5100_tco_cleanup_module() for the module
exit function.
Use consistent defines for accessing the watchdog control register.
Cc: Zoltán Böszörményi <zboszor@pr.hu>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/sp5100_tco.h')
-rw-r--r-- | drivers/watchdog/sp5100_tco.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/watchdog/sp5100_tco.h b/drivers/watchdog/sp5100_tco.h index 2622cfe23dc1..cc00f1157220 100644 --- a/drivers/watchdog/sp5100_tco.h +++ b/drivers/watchdog/sp5100_tco.h @@ -15,6 +15,8 @@ #define SP5100_WDT_COUNT(base) ((base) + 0x04) /* Watchdog Count */ #define SP5100_WDT_START_STOP_BIT (1 << 0) +#define SP5100_WDT_FIRED (1 << 1) +#define SP5100_WDT_ACTION_RESET (1 << 2) #define SP5100_WDT_TRIGGER_BIT (1 << 7) #define SP5100_PM_IOPORTS_SIZE 0x02 @@ -34,9 +36,6 @@ #define SP5100_PM_WATCHDOG_CONTROL 0x69 #define SP5100_PM_WATCHDOG_BASE 0x6C -#define SP5100_PM_WATCHDOG_FIRED (1 << 1) -#define SP5100_PM_WATCHDOG_ACTION_RESET (1 << 2) - #define SP5100_PCI_WATCHDOG_MISC_REG 0x41 #define SP5100_PCI_WATCHDOG_DECODE_EN (1 << 3) |