summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2006-01-09 21:59:39 +0100
committerWim Van Sebroeck <wim@iguana.be>2006-02-12 14:46:39 +0100
commit85875211acc94ecb76fe04fbebc6aca12b6da60d (patch)
tree218ff9c2e9109c00e5f536341758942634147e75 /drivers
parent8f0235dccc3f7bffc32abcef2aec3d1b15c61927 (diff)
[WATCHDOG] pcwd.c move get_support to pcwd_check_temperature_support
Rename get_support function to pcwd_check_temperature_support so that it is clearer what the function does. Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/watchdog/pcwd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/char/watchdog/pcwd.c b/drivers/char/watchdog/pcwd.c
index 0635cd724365..0549b2e89966 100644
--- a/drivers/char/watchdog/pcwd.c
+++ b/drivers/char/watchdog/pcwd.c
@@ -223,6 +223,12 @@ static void unset_command_mode(void)
pcwd_private.command_mode = 0;
}
+static inline void pcwd_check_temperature_support(void)
+{
+ if (inb(pcwd_private.io_addr) != 0xF0)
+ pcwd_private.supports_temp = 1;
+}
+
static void pcwd_timer_ping(unsigned long data)
{
int wdrst_stat;
@@ -623,12 +629,6 @@ static struct notifier_block pcwd_notifier = {
* Init & exit routines
*/
-static inline void get_support(void)
-{
- if (inb(pcwd_private.io_addr) != 0xF0)
- pcwd_private.supports_temp = 1;
-}
-
static inline int get_revision(void)
{
int r = PCWD_REVISION_C;
@@ -730,7 +730,7 @@ static int __devinit pcwatchdog_init(int base_addr)
pcwd_stop();
/* Check whether or not the card supports the temperature device */
- get_support();
+ pcwd_check_temperature_support();
/* Get some extra info from the hardware (in command/debug/diag mode) */
if (pcwd_private.revision == PCWD_REVISION_A)