Re: [PATCH] watchdog: fix GETTIMEOUT ioctl in booke_wdt

From: Timur Tabi
Date: Fri Jan 27 2012 - 16:35:06 EST


Dmitry Artamonow wrote:
> Commit dcfb748422 ([WATCHDOG] fix book E watchdog to take
> WDIOC_SETTIMEOUT arg in seconds) fixed SETTIMEOUT ioctl
> to use seconds as a parameter instead of some hardware-specific
> "period", but missed to apply similar changes to GETTIMEOUT,
> so it still returns "period" value. Let's fix it!
> Also, while at it, make SETTIMEOUT ioctl return real timeout
> value as it should do according to the documentation.
>
> Signed-off-by: Dmitry Artamonow <mad_soft@xxxxxxxx>
> ---

Acked-by: Timur Tabi <timur@xxxxxxxxxxxxx>

I don't have an easy way to test the watchdog ioctls.

--
Timur Tabi
Linux kernel developer at Freescale

--
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/