]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: fix GETTIMEOUT ioctl in booke_wdt
authorDmitry Artamonow <mad_soft@inbox.ru>
Thu, 26 Jan 2012 19:24:30 +0000 (23:24 +0400)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 29 Feb 2012 08:46:13 +0000 (09:46 +0100)
commit3f77280f2e86e514da200f60141a0ffcde2bbc95
tree935b65a517d1d7ea918fd9fc0ce0162f1f067eff
parentb8794e4d52929fbcb27081c9b969c4d4fc1a7f48
watchdog: fix GETTIMEOUT ioctl in booke_wdt

Commit 62b0c6ef66 ([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@inbox.ru>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/booke_wdt.c