Skip to content

Commit

Permalink
watchdog: ep93xx_wdt: timeout is an unsigned int value.
Browse files Browse the repository at this point in the history
the timeout is a positive thus unsigned int value.
Also re-add the comment about the actual heartbeat.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Wim Van Sebroeck committed Mar 27, 2012
1 parent 59dcf1e commit 2ca1606
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/watchdog/ep93xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
module_param(nowayout, bool, 0);
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started");

static int timeout = WDT_TIMEOUT;
module_param(timeout, int, 0);
static unsigned int timeout = WDT_TIMEOUT;
module_param(timeout, uint, 0);
MODULE_PARM_DESC(timeout,
"Watchdog timeout in seconds. (1<=timeout<=3600, default="
__MODULE_STRING(WDT_TIMEOUT) ")");
Expand All @@ -55,7 +55,7 @@ static unsigned long next_heartbeat;
#define EP93XX_WATCHDOG 0x00
#define EP93XX_WDSTATUS 0x04

/* reset the wdt every ~200ms */
/* reset the wdt every ~200ms - the heartbeat of the device is 0.250 seconds*/
#define WDT_INTERVAL (HZ/5)

static void ep93xx_wdt_timer_ping(unsigned long data)
Expand Down

0 comments on commit 2ca1606

Please sign in to comment.