watchdog: imx2_wdt: also set wdog->timeout to new_timeout
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 6 May 2015 11:17:59 +0000 (13:17 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 22 Jun 2015 13:54:25 +0000 (15:54 +0200)
commit30dd4a8f08b570b5ed978fd937fdb5c31194be41
tree974ec1b460814ab124ec4507bb8a100483b4f87d
parent21a926a340723035b5c569046056d65f80013e12
watchdog: imx2_wdt: also set wdog->timeout to new_timeout

Commit faad5de0b104 ("watchdog: imx2_wdt: convert to watchdog core api")
removes the custom ioctl function. The generic ioctl handler is not
setting the wdog->timeout to the new_timeout but handing this preset
value back to the userspace. This patch sets the new value in the
drivers set_timeout function to fix that problem.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/imx2_wdt.c