aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/lirc_dev.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2017-01-26 15:19:33 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-03-24 07:44:42 -0300
commit5c8627586942b0269f81e3296dabe9f049815779 (patch)
treef1fd9db3e346e8a1e0eea83ac6accb62b7b80c5f /drivers/media/rc/lirc_dev.c
parent[media] lirc: document lirc modes better (diff)
downloadlinux-dev-5c8627586942b0269f81e3296dabe9f049815779.tar.xz
linux-dev-5c8627586942b0269f81e3296dabe9f049815779.zip
[media] lirc: return ENOTTY when ioctl is not supported
We shouldn't be using ENOSYS when a feature is not available. I've tested lirc; nothing is broken as far as I can make out. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/lirc_dev.c')
-rw-r--r--drivers/media/rc/lirc_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c
index 393dccaabdd0..e930c0598d3f 100644
--- a/drivers/media/rc/lirc_dev.c
+++ b/drivers/media/rc/lirc_dev.c
@@ -623,7 +623,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
result = put_user(ir->d.max_timeout, (__u32 __user *)arg);
break;
default:
- result = -EINVAL;
+ result = -ENOTTY;
}
mutex_unlock(&ir->irctl_lock);