Skip to content
Commit 741b9c7d authored by Dmitry Artamonow's avatar Dmitry Artamonow Committed by Wim Van Sebroeck
Browse files

watchdog: fix GETTIMEOUT ioctl in booke_wdt



Commit dcfb7484 ([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: default avatarDmitry Artamonow <mad_soft@inbox.ru>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent f599aaf0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment