aboutsummaryrefslogtreecommitdiff
path: root/Documentation/userspace-api
diff options
context:
space:
mode:
authorGravatar Hans Verkuil <hverkuil-cisco@xs4all.nl> 2024-02-23 10:08:47 +0100
committerGravatar Hans Verkuil <hverkuil-cisco@xs4all.nl> 2024-04-24 13:49:55 +0200
commitdd05fd125e66932e54da696f33f0cee51d4f8e95 (patch)
tree35be9fea16ea6f47f14707293850299e3f236bcc /Documentation/userspace-api
parentmedia: v4l2-core: hold videodev_lock until dev reg, finishes (diff)
downloadlinux-dd05fd125e66932e54da696f33f0cee51d4f8e95.tar.gz
linux-dd05fd125e66932e54da696f33f0cee51d4f8e95.tar.bz2
linux-dd05fd125e66932e54da696f33f0cee51d4f8e95.zip
media: cec: return -ENODEV instead of -ENXIO if unregistered
If the CEC device is unregistered, then an attempt to open the device node should result in an -ENODEV error instead of -ENXIO. Document this as well in cec-func-open.rst. This is consistent with the error code returned by other file operations such as ioctl. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'Documentation/userspace-api')
-rw-r--r--Documentation/userspace-api/media/cec/cec-func-open.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/userspace-api/media/cec/cec-func-open.rst b/Documentation/userspace-api/media/cec/cec-func-open.rst
index d86563a34b9e..125c8ac6680b 100644
--- a/Documentation/userspace-api/media/cec/cec-func-open.rst
+++ b/Documentation/userspace-api/media/cec/cec-func-open.rst
@@ -70,5 +70,5 @@ include:
``ENOMEM``
Insufficient kernel memory was available.
-``ENXIO``
- No device corresponding to this device special file exists.
+``ENODEV``
+ Device not found or was removed.