Commit 918d9c77 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet
Browse files

docs: cdrom-standard.rst: get rid of uneeded UTF-8 chars



This file was converted from a LaTeX one. The conversion used
some UTF-8 characters at the literal blocks. Replace them
by normal ASCII characters.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Acked-by: default avatarJens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/79c3f482da17ea48d69b6e6ad1b7fb102b9dd7bf.1620744606.git.mchehab+huawei@kernel.org


Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 9e255e2b
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
@@ -146,18 +146,18 @@ with the kernel as a block device by registering the following general
*struct file_operations*::

	struct file_operations cdrom_fops = {
		NULL,			/ lseek /
		block _read ,		/ readgeneral block-dev read /
		block _write,		/ writegeneral block-dev write /
		NULL,			/ readdir /
		NULL,			/ select /
		cdrom_ioctl,		/ ioctl /
		NULL,			/ mmap /
		cdrom_open,		/ open /
		cdrom_release,		/ release /
		NULL,			/ fsync /
		NULL,			/ fasync /
		NULL			/ revalidate /
		NULL,			/* lseek */
		block _read ,		/* read--general block-dev read */
		block _write,		/* write--general block-dev write */
		NULL,			/* readdir */
		NULL,			/* select */
		cdrom_ioctl,		/* ioctl */
		NULL,			/* mmap */
		cdrom_open,		/* open */
		cdrom_release,		/* release */
		NULL,			/* fsync */
		NULL,			/* fasync */
		NULL			/* revalidate */
	};

Every active CD-ROM device shares this *struct*. The routines
@@ -569,7 +569,7 @@ the *CDC_CLOSE_TRAY* bit in *mask*.

In the file `cdrom.c` you will encounter many constructions of the type::

	if (cdo->capability & cdi->mask & CDC _capability) ...
	if (cdo->capability & ~cdi->mask & CDC _<capability>) ...

There is no *ioctl* to set the mask... The reason is that
I think it is better to control the **behavior** rather than the