Re: add bcm47xx watchdog driver

From: Wim Van Sebroeck
Date: Wed Jun 10 2009 - 15:06:21 EST


Hi Matthieu,

>> +
>> +#define WDT_DEFAULT_TIME 30 /* seconds */
>> +#define WDT_MAX_TIME 255 /* seconds */
> Why have changed this from 256 to 255 ?

Since you use a timer to control the real watchdog, the wdt_time function is arbitraty anyway.
Most watchdog drivers use 0xFFFF. Since you only went to 256 it made more sense to have it as 0xFF which is 255.
We can make it 65535 also.

>> +}
>> +
>> +static int bcm47xx_wdt_notify_sys(struct notifier_block *this,
>> + nsigned long code, void *unused)
> ^^^^
> Does this build ?

Nope. should be unsigned.

Kind regards,
Wim.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/