Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 927d6961 authored by Wim Van Sebroeck's avatar Wim Van Sebroeck
Browse files

[WATCHDOG] cpwd.c: Coding style - Clean-up



This brings the cpwd.c watchdog driver in line with the kernel's coding style.

Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent d8100c3a
Loading
Loading
Loading
Loading
+40 −38
Original line number Diff line number Diff line
@@ -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.
@@ -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 {
@@ -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)
@@ -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;