Commit b2a58436 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] doc-dst: visually improve the CEC pages



Adjust the widths and show error codes as constants.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 21c62694
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,5 +45,5 @@ Return Value
:c:func:`close()` returns 0 on success. On error, -1 is returned, and
``errno`` is set appropriately. Possible error codes are:

EBADF
``EBADF``
    ``fd`` is not a valid open file descriptor.
+5 −5
Original line number Diff line number Diff line
@@ -64,17 +64,17 @@ Return Value
-1 is returned, and ``errno`` is set appropriately. Possible error codes
include:

EACCES
``EACCES``
    The requested access to the file is not allowed.

EMFILE
``EMFILE``
    The process already has the maximum number of files open.

ENFILE
``ENFILE``
    The system limit on the total number of open files has been reached.

ENOMEM
``ENOMEM``
    Insufficient kernel memory was available.

ENXIO
``ENXIO``
    No device corresponding to this device special file exists.
+4 −4
Original line number Diff line number Diff line
@@ -56,15 +56,15 @@ On success, :c:func:`poll()` returns the number structures which have
non-zero ``revents`` fields, or zero if the call timed out. On error -1
is returned, and the ``errno`` variable is set appropriately:

EBADF
``EBADF``
    One or more of the ``ufds`` members specify an invalid file
    descriptor.

EFAULT
``EFAULT``
    ``ufds`` references an inaccessible memory area.

EINTR
``EINTR``
    The call was interrupted by a signal.

EINVAL
``EINVAL``
    The ``nfds`` argument is greater than ``OPEN_MAX``.
+2 −2
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ returns the information to the application. The ioctl never fails.
.. flat-table:: struct cec_caps
    :header-rows:  0
    :stub-columns: 0
    :widths:       1 1 2
    :widths:       1 1 16


    -  .. row 1
@@ -90,7 +90,7 @@ returns the information to the application. The ioctl never fails.
.. flat-table:: CEC Capabilities Flags
    :header-rows:  0
    :stub-columns: 0
    :widths:       3 1 4
    :widths:       3 1 8


    -  .. _`CEC_CAP_PHYS_ADDR`:
+2 −2
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ by a file handle in initiator mode (see
.. flat-table:: struct cec_log_addrs
    :header-rows:  0
    :stub-columns: 0
    :widths:       1 1 2
    :widths:       1 1 16


    -  .. row 1
@@ -292,7 +292,7 @@ by a file handle in initiator mode (see
.. flat-table:: CEC Logical Address Types
    :header-rows:  0
    :stub-columns: 0
    :widths:       3 1 4
    :widths:       3 1 16


    -  .. _`CEC_LOG_ADDR_TYPE_TV`:
Loading