diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-04-19 11:36:03 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-04-19 16:23:55 -0400 |
commit | d1c754a9326d95dff93bfe8004cba8574a7a20a8 (patch) | |
tree | 2fd7dedd41270de9717dd87bfb8eb285d3bcfd62 /drivers/media/video/davinci | |
parent | ee71e7b3ae1780e4475aa5dd980dd99c0309079b (diff) |
[media] V4L2: drivers implementing vidioc_default should also return -ENOTTY
If the vidioc_default implementation doesn't support the ioctl, then drivers
must return -ENOTTY instead of -EINVAL.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/davinci')
-rw-r--r-- | drivers/media/video/davinci/vpfe_capture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/davinci/vpfe_capture.c b/drivers/media/video/davinci/vpfe_capture.c index 20cf271a774b..49a845fb804a 100644 --- a/drivers/media/video/davinci/vpfe_capture.c +++ b/drivers/media/video/davinci/vpfe_capture.c | |||
@@ -1761,7 +1761,7 @@ static long vpfe_param_handler(struct file *file, void *priv, | |||
1761 | } | 1761 | } |
1762 | break; | 1762 | break; |
1763 | default: | 1763 | default: |
1764 | ret = -EINVAL; | 1764 | ret = -ENOTTY; |
1765 | } | 1765 | } |
1766 | unlock_out: | 1766 | unlock_out: |
1767 | mutex_unlock(&vpfe_dev->lock); | 1767 | mutex_unlock(&vpfe_dev->lock); |