watchdog: s3c2410_wdt: Set timeout to actually achieved timeout
authorHans de Goede <hdegoede@redhat.com>
Fri, 11 May 2012 10:00:27 +0000 (12:00 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 23 May 2012 14:26:20 +0000 (16:26 +0200)
commit5f2430f554aabb4810b2a6f906be571ac1241d96
tree061e277f6d580d8d2cb77866669628838b5b3a29
parentabcf834b80eefb2ded56254ce7de94d2ab258d22
watchdog: s3c2410_wdt: Set timeout to actually achieved timeout

While rebasing my "watchdog_dev: Let the driver update the timeout field on
set_timeout success" patch (before I noticed it was already picked up by Wim),
I noticed that the s3c2410_wdt driver may not always have a 1 second
resolution, this patch changes s3c2410wdt_set_heartbeat to update the
timeout to the actually achieved timeout.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/s3c2410_wdt.c