Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40238
b: refs/heads/master
c: d46ab59
h: refs/heads/master
v: v3
  • Loading branch information
Samuel Tardieu authored and Wim Van Sebroeck committed Oct 4, 2006
1 parent fc6cff1 commit ca024b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7933e05d46f49385841d09028ee07fae2b383f2
refs/heads/master: d46ab596e251e35a7e27c95e4e4d01921f3e579e
12 changes: 9 additions & 3 deletions trunk/drivers/char/watchdog/w83697hf_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ w83697hf_lock(void)
}

/*
* The two functions w83697hf_get_reg() and w83697hf_set_reg()
* must be called with the device unlocked.
* The three functions w83697hf_get_reg(), w83697hf_set_reg() and
* w83697hf_write_timeout() must be called with the device unlocked.
*/

static unsigned char
Expand All @@ -101,6 +101,12 @@ w83697hf_set_reg(unsigned char reg, unsigned char data)
outb_p(data, W83697HF_EFDR);
}

static void
w83697hf_write_timeout(int timeout)
{
w83697hf_set_reg(0xF4, timeout); /* Write Timeout counter to CRF4 */
}

static void
w83697hf_select_wdt(void)
{
Expand Down Expand Up @@ -157,7 +163,7 @@ wdt_ctrl(int timeout)

w83697hf_select_wdt();

w83697hf_set_reg(0xF4, timeout); /* Write Timeout counter to CRF4 */
w83697hf_write_timeout(timeout);

w83697hf_deselect_wdt();

Expand Down

0 comments on commit ca024b8

Please sign in to comment.