lkml.org 
[lkml]   [2002]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Further WatchDog Updates
On Tue, 9 Apr 2002, Rob Radez wrote:

> Oops, yea, I forgot return values. I'll fix that up. I got rid of
> sc1200wdt_status because it returns bit 1, which is defined as WDIOF_OVERHEAT
> I suppose it would be possible to return WDIOF_KEEPALIVEPING instead.
> So something like if(ret & 0x01) return WDIOF_KEEPALIVEPING;?

Yes, that should be fine. But don't forget its inactive high ;)

so its...

return !(ret & 0x01) ? WDIOF_KEEPALIVEPING : 0;

Thanks,
Zwane

--
http://function.linuxpower.ca


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

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.558 / U:0.656 seconds]
©2003-2011 Jasper Spaans. Advertise on this site