[WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl()
authorWim Van Sebroeck <wim@iguana.be>
Wed, 13 Sep 2006 19:27:29 +0000 (21:27 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 4 Oct 2006 20:42:19 +0000 (22:42 +0200)
commit196f29c8e8cd3352d26ed7bdf44f622e14adb931
tree7fbc53f76d8871bec959ca6d4f8463c13367578f
parentc310e2b950c949cfc14754baed877eadb1a26f6b
[WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl()

Return ENOTTY instead of ENOIOCTLCMD in user-visible ioctl() results

The watchdog drivers used to return ENOIOCTLCMD for bad ioctl() commands.
ENOIOCTLCMD should not be visible by the user, so use ENOTTY instead.

Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
drivers/char/watchdog/w83697hf_wdt.c