Skip to content

Commit

Permalink
[WATCHDOG] pcwd.c move get_support to pcwd_check_temperature_support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wim Van Sebroeck committed Feb 12, 2006
1 parent 8f0235d commit 8587521
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions drivers/char/watchdog/pcwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8587521

Please sign in to comment.