diff mbox series

doc: media: v4l/func-open.rst: ENXIO should be ENODEV

Message ID 50346832-e726-4bb4-9f9b-375713afa5d5@xs4all.nl
State Accepted
Commit e85bfd15c84e157338895a42676d07e73fe7c0e1
Headers show
Series doc: media: v4l/func-open.rst: ENXIO should be ENODEV | expand

Commit Message

Hans Verkuil Feb. 23, 2024, 9:15 a.m. UTC
The error that V4L2 returns when an attempt is made to open an
unregisted device node is ENODEV, no ENXIO. Update the documentation.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
 Documentation/userspace-api/media/v4l/func-open.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/Documentation/userspace-api/media/v4l/func-open.rst b/Documentation/userspace-api/media/v4l/func-open.rst
index ba23ff1e45dd..be3808cbf876 100644
--- a/Documentation/userspace-api/media/v4l/func-open.rst
+++ b/Documentation/userspace-api/media/v4l/func-open.rst
@@ -65,8 +65,8 @@  EBUSY
     The driver does not support multiple opens and the device is already
     in use.

-ENXIO
-    No device corresponding to this device special file exists.
+ENODEV
+    Device not found or was removed.

 ENOMEM
     Not enough kernel memory was available to complete the request.