Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: media: gen-errors.rst: fix confusing ENOTTY description

The text is very, very old and predates /dev/mediaX devices, so the
reference to "media device" is today very confusing.

It also says that the ioctl is not supported by the driver, but a
driver may have multiple device nodes, some support a given ioctl,
and some don't.

Simplify the description: ENOTTY means that the ioctl is not supported
by the file descriptor.

Reported-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

+1 -3
+1 -3
Documentation/userspace-api/media/gen-errors.rst
··· 59 59 60 60 - - ``ENOTTY`` 61 61 62 - - The ioctl is not supported by the driver, actually meaning that 63 - the required functionality is not available, or the file 64 - descriptor is not for a media device. 62 + - The ioctl is not supported by the file descriptor. 65 63 66 64 - - ``ENOSPC`` 67 65