/* Set a new heartbeat value for the watchdog device. If the heartbeat value is incorrect we keep the old value and return -EINVAL. If successful we return 0.  */
static int wdtpci_set_heartbeat(int t)
/* Set a new heartbeat value for the watchdog device. If the heartbeat value is incorrect we keep the old value and return -EINVAL. If successful we return 0.  */
static int wdtpci_set_heartbeat(int t)
{
	if (t < 1 || t > 65535)
		return -EINVAL;
	heartbeat = t;
	wd_heartbeat = t * 100;
	return 0;
}