[media] v4l2 core: return -ENOTTY if an ioctl doesn't exist
Currently, -EINVAL is used to return either when an IOCTL is not implemented, or if the ioctl was not implemented. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
@ -30,13 +30,6 @@
|
||||
allowed range. This is a widely used error code. See the individual
|
||||
ioctl requests for specific causes.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>EINVAL or ENOTTY</entry>
|
||||
<entry>The ioctl is not supported by the driver, actually meaning that
|
||||
the required functionality is not available, or the file
|
||||
descriptor is not for a media device. The usage of EINVAL is
|
||||
deprecated and will be fixed on a latter patch.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>ENODEV</entry>
|
||||
<entry>Device not found or was removed.</entry>
|
||||
@ -45,6 +38,12 @@
|
||||
<entry>ENOMEM</entry>
|
||||
<entry>There's not enough memory to handle the desired operation.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>ENOTTY</entry>
|
||||
<entry>The ioctl is not supported by the driver, actually meaning that
|
||||
the required functionality is not available, or the file
|
||||
descriptor is not for a media device.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>ENOSPC</entry>
|
||||
<entry>On USB devices, the stream ioctl's can return this error, meaning
|
||||
|
Reference in New Issue
Block a user