Loading drivers/watchdog/cpwd.c +40 −38 Original line number Diff line number Diff line Loading @@ -108,7 +108,8 @@ static struct cpwd *cpwd_device; * ------------------- * dcntr - Current 16-bit downcounter value. * When downcounter reaches '0' watchdog expires. * Reading this register resets downcounter with 'limit' value. * Reading this register resets downcounter with * 'limit' value. * limit - 16-bit countdown value in 1/10th second increments. * Writing this register begins countdown with input value. * Reading from this register does not affect counter. Loading Loading @@ -329,7 +330,8 @@ static int cpwd_getstatus(struct cpwd *p, int index) if (p->devs[index].runstatus & WD_STAT_SVCD) { ret = WD_EXPIRED; } else { /* we could as well pretend we are expired */ /* we could as well pretend * we are expired */ ret = WD_FREERUN; } } else { Loading @@ -342,7 +344,7 @@ static int cpwd_getstatus(struct cpwd *p, int index) if (p->devs[index].runstatus & WD_STAT_SVCD) ret |= WD_SERVICED; return(ret); return ret; } static irqreturn_t cpwd_interrupt(int irq, void *dev_id) Loading Loading @@ -458,7 +460,7 @@ static long cpwd_ioctl(struct file *file, unsigned int cmd, unsigned long arg) case WIOCSTOP: if (p->enabled) return(-EINVAL); return -EINVAL; cpwd_stoptimer(p, index); break; Loading Loading
drivers/watchdog/cpwd.c +40 −38 Original line number Diff line number Diff line Loading @@ -108,7 +108,8 @@ static struct cpwd *cpwd_device; * ------------------- * dcntr - Current 16-bit downcounter value. * When downcounter reaches '0' watchdog expires. * Reading this register resets downcounter with 'limit' value. * Reading this register resets downcounter with * 'limit' value. * limit - 16-bit countdown value in 1/10th second increments. * Writing this register begins countdown with input value. * Reading from this register does not affect counter. Loading Loading @@ -329,7 +330,8 @@ static int cpwd_getstatus(struct cpwd *p, int index) if (p->devs[index].runstatus & WD_STAT_SVCD) { ret = WD_EXPIRED; } else { /* we could as well pretend we are expired */ /* we could as well pretend * we are expired */ ret = WD_FREERUN; } } else { Loading @@ -342,7 +344,7 @@ static int cpwd_getstatus(struct cpwd *p, int index) if (p->devs[index].runstatus & WD_STAT_SVCD) ret |= WD_SERVICED; return(ret); return ret; } static irqreturn_t cpwd_interrupt(int irq, void *dev_id) Loading Loading @@ -458,7 +460,7 @@ static long cpwd_ioctl(struct file *file, unsigned int cmd, unsigned long arg) case WIOCSTOP: if (p->enabled) return(-EINVAL); return -EINVAL; cpwd_stoptimer(p, index); break; Loading