Skip to content

Commit 5f536f4

Browse files
committed
media: docs: make RC documents more compatible with Sphinx 3.1+
Sphinx 3.x broke support for the cdomain.py extension, as the c domain code was rewritten. Due to that, the c tags need to be re-written, in order to use the new c domain notation. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent 937e680 commit 5f536f4

16 files changed

Lines changed: 73 additions & 75 deletions

‎Documentation/userspace-api/media/rc/lirc-get-features.rst‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc_get_features:
45

@@ -14,8 +15,9 @@ LIRC_GET_FEATURES - Get the underlying hardware device's features
1415
Synopsis
1516
========
1617

17-
.. c:function:: int ioctl( int fd, LIRC_GET_FEATURES, __u32 *features)
18-
:name: LIRC_GET_FEATURES
18+
.. c:macro:: LIRC_GET_FEATURES
19+
20+
``int ioctl(int fd, LIRC_GET_FEATURES, __u32 *features)``
1921

2022
Arguments
2123
=========
@@ -26,11 +28,9 @@ Arguments
2628
``features``
2729
Bitmask with the LIRC features.
2830

29-
3031
Description
3132
===========
3233

33-
3434
Get the underlying hardware device's features. If a driver does not
3535
announce support of certain features, calling of the corresponding ioctls
3636
is undefined.
@@ -184,7 +184,6 @@ LIRC features
184184

185185
Unused. Kept just to avoid breaking uAPI.
186186

187-
188187
Return Value
189188
============
190189

‎Documentation/userspace-api/media/rc/lirc-get-rec-mode.rst‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc_get_rec_mode:
45
.. _lirc_set_rec_mode:
@@ -15,11 +16,13 @@ LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set current receive mode.
1516
Synopsis
1617
========
1718

18-
.. c:function:: int ioctl( int fd, LIRC_GET_REC_MODE, __u32 *mode)
19-
:name: LIRC_GET_REC_MODE
19+
.. c:macro:: LIRC_GET_REC_MODE
2020
21-
.. c:function:: int ioctl( int fd, LIRC_SET_REC_MODE, __u32 *mode)
22-
:name: LIRC_SET_REC_MODE
21+
``int ioctl(int fd, LIRC_GET_REC_MODE, __u32 *mode)``
22+
23+
.. c:macro:: LIRC_SET_REC_MODE
24+
25+
``int ioctl(int fd, LIRC_SET_REC_MODE, __u32 *mode)``
2326

2427
Arguments
2528
=========
@@ -47,7 +50,6 @@ Return Value
4750
:header-rows: 0
4851
:stub-columns: 0
4952

50-
5153
- .. row 1
5254

5355
- ``ENODEV``

‎Documentation/userspace-api/media/rc/lirc-get-rec-resolution.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc_get_rec_resolution:
45

@@ -14,8 +15,9 @@ LIRC_GET_REC_RESOLUTION - Obtain the value of receive resolution, in microsecond
1415
Synopsis
1516
========
1617

17-
.. c:function:: int ioctl( int fd, LIRC_GET_REC_RESOLUTION, __u32 *microseconds)
18-
:name: LIRC_GET_REC_RESOLUTION
18+
.. c:macro:: LIRC_GET_REC_RESOLUTION
19+
20+
``int ioctl(int fd, LIRC_GET_REC_RESOLUTION, __u32 *microseconds)``
1921

2022
Arguments
2123
=========
@@ -26,7 +28,6 @@ Arguments
2628
``microseconds``
2729
Resolution, in microseconds.
2830

29-
3031
Description
3132
===========
3233

@@ -38,7 +39,6 @@ This ioctl returns the integer value with such resolution, with can be
3839
used by userspace applications like lircd to automatically adjust the
3940
tolerance value.
4041

41-
4242
Return Value
4343
============
4444

‎Documentation/userspace-api/media/rc/lirc-get-send-mode.rst‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc_get_send_mode:
45
.. _lirc_set_send_mode:
@@ -15,11 +16,13 @@ LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set current transmit mode.
1516
Synopsis
1617
========
1718

18-
.. c:function:: int ioctl( int fd, LIRC_GET_SEND_MODE, __u32 *mode )
19-
:name: LIRC_GET_SEND_MODE
19+
.. c:macro:: LIRC_GET_SEND_MODE
2020
21-
.. c:function:: int ioctl( int fd, LIRC_SET_SEND_MODE, __u32 *mode )
22-
:name: LIRC_SET_SEND_MODE
21+
``int ioctl(int fd, LIRC_GET_SEND_MODE, __u32 *mode)``
22+
23+
.. c:macro:: LIRC_SET_SEND_MODE
24+
25+
``int ioctl(int fd, LIRC_SET_SEND_MODE, __u32 *mode)``
2326

2427
Arguments
2528
=========
@@ -30,7 +33,6 @@ Arguments
3033
``mode``
3134
The mode used for transmitting.
3235

33-
3436
Description
3537
===========
3638

@@ -44,14 +46,12 @@ modes the driver supports.
4446
Return Value
4547
============
4648

47-
4849
.. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
4950

5051
.. flat-table::
5152
:header-rows: 0
5253
:stub-columns: 0
5354

54-
5555
- .. row 1
5656

5757
- ``ENODEV``

‎Documentation/userspace-api/media/rc/lirc-get-timeout.rst‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc_get_min_timeout:
45
.. _lirc_get_max_timeout:
@@ -16,11 +17,13 @@ range for IR receive.
1617
Synopsis
1718
========
1819

19-
.. c:function:: int ioctl( int fd, LIRC_GET_MIN_TIMEOUT, __u32 *timeout)
20-
:name: LIRC_GET_MIN_TIMEOUT
20+
.. c:macro:: LIRC_GET_MIN_TIMEOUT
2121
22-
.. c:function:: int ioctl( int fd, LIRC_GET_MAX_TIMEOUT, __u32 *timeout)
23-
:name: LIRC_GET_MAX_TIMEOUT
22+
``int ioctl(int fd, LIRC_GET_MIN_TIMEOUT, __u32 *timeout)``
23+
24+
.. c:macro:: LIRC_GET_MAX_TIMEOUT
25+
26+
``int ioctl(int fd, LIRC_GET_MAX_TIMEOUT, __u32 *timeout)``
2427

2528
Arguments
2629
=========
@@ -31,7 +34,6 @@ Arguments
3134
``timeout``
3235
Timeout, in microseconds.
3336

34-
3537
Description
3638
===========
3739

@@ -47,7 +49,6 @@ that can be set.
4749
both ioctls will return the same value even though the timeout
4850
cannot be changed via :ref:`LIRC_SET_REC_TIMEOUT`.
4951

50-
5152
Return Value
5253
============
5354

‎Documentation/userspace-api/media/rc/lirc-read.rst‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc-read:
45

@@ -11,18 +12,14 @@ Name
1112

1213
lirc-read - Read from a LIRC device
1314

14-
1515
Synopsis
1616
========
1717

1818
.. code-block:: c
1919
2020
#include <unistd.h>
2121
22-
2322
.. c:function:: ssize_t read( int fd, void *buf, size_t count )
24-
:name: lirc-read
25-
2623
2724
Arguments
2825
=========
@@ -39,9 +36,9 @@ Arguments
3936
Description
4037
===========
4138
42-
:ref:`read() <lirc-read>` attempts to read up to ``count`` bytes from file
39+
:c:func:`read()` attempts to read up to ``count`` bytes from file
4340
descriptor ``fd`` into the buffer starting at ``buf``. If ``count`` is zero,
44-
:ref:`read() <lirc-read>` returns zero and has no other results. If ``count``
41+
:c:func:`read()` returns zero and has no other results. If ``count``
4542
is greater than ``SSIZE_MAX``, the result is unspecified.
4643
4744
The exact format of the data depends on what :ref:`lirc_modes` a driver
@@ -59,7 +56,6 @@ by hardware decoders. The :c:type:`rc_proto` member is set to the
5956
used for transmission, and ``scancode`` to the decoded scancode,
6057
and the ``keycode`` set to the keycode or ``KEY_RESERVED``.
6158
62-
6359
Return Value
6460
============
6561

‎Documentation/userspace-api/media/rc/lirc-set-measure-carrier-mode.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc_set_measure_carrier_mode:
45

@@ -14,8 +15,9 @@ LIRC_SET_MEASURE_CARRIER_MODE - enable or disable measure mode
1415
Synopsis
1516
========
1617

17-
.. c:function:: int ioctl( int fd, LIRC_SET_MEASURE_CARRIER_MODE, __u32 *enable )
18-
:name: LIRC_SET_MEASURE_CARRIER_MODE
18+
.. c:macro:: LIRC_SET_MEASURE_CARRIER_MODE
19+
20+
``int ioctl(int fd, LIRC_SET_MEASURE_CARRIER_MODE, __u32 *enable)``
1921

2022
Arguments
2123
=========
@@ -27,7 +29,6 @@ Arguments
2729
enable = 1 means enable measure mode, enable = 0 means disable measure
2830
mode.
2931

30-
3132
Description
3233
===========
3334

@@ -37,7 +38,6 @@ Enable or disable measure mode. If enabled, from the next key
3738
press on, the driver will send ``LIRC_MODE2_FREQUENCY`` packets. By
3839
default this should be turned off.
3940

40-
4141
Return Value
4242
============
4343

‎Documentation/userspace-api/media/rc/lirc-set-rec-carrier-range.rst‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc_set_rec_carrier_range:
45

@@ -15,8 +16,9 @@ IR receive.
1516
Synopsis
1617
========
1718

18-
.. c:function:: int ioctl( int fd, LIRC_SET_REC_CARRIER_RANGE, __u32 *frequency )
19-
:name: LIRC_SET_REC_CARRIER_RANGE
19+
.. c:macro:: LIRC_SET_REC_CARRIER_RANGE
20+
21+
``int ioctl(int fd, LIRC_SET_REC_CARRIER_RANGE, __u32 *frequency)``
2022

2123
Arguments
2224
=========

‎Documentation/userspace-api/media/rc/lirc-set-rec-carrier.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc_set_rec_carrier:
45

@@ -11,12 +12,12 @@ Name
1112

1213
LIRC_SET_REC_CARRIER - Set carrier used to modulate IR receive.
1314

14-
1515
Synopsis
1616
========
1717

18-
.. c:function:: int ioctl( int fd, LIRC_SET_REC_CARRIER, __u32 *frequency )
19-
:name: LIRC_SET_REC_CARRIER
18+
.. c:macro:: LIRC_SET_REC_CARRIER
19+
20+
``int ioctl(int fd, LIRC_SET_REC_CARRIER, __u32 *frequency)``
2021

2122
Arguments
2223
=========
@@ -37,7 +38,6 @@ Set receive carrier used to modulate IR PWM pulses and spaces.
3738
If called together with :ref:`LIRC_SET_REC_CARRIER_RANGE`, this ioctl
3839
sets the upper bound frequency that will be recognized by the device.
3940

40-
4141
Return Value
4242
============
4343

‎Documentation/userspace-api/media/rc/lirc-set-rec-timeout-reports.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2+
.. c:namespace:: RC
23
34
.. _lirc_set_rec_timeout_reports:
45

@@ -14,8 +15,9 @@ LIRC_SET_REC_TIMEOUT_REPORTS - enable or disable timeout reports for IR receive
1415
Synopsis
1516
========
1617

17-
.. c:function:: int ioctl( int fd, LIRC_SET_REC_TIMEOUT_REPORTS, __u32 *enable )
18-
:name: LIRC_SET_REC_TIMEOUT_REPORTS
18+
.. c:macro:: LIRC_SET_REC_TIMEOUT_REPORTS
19+
20+
``int ioctl(int fd, LIRC_SET_REC_TIMEOUT_REPORTS, __u32 *enable)``
1921

2022
Arguments
2123
=========
@@ -27,7 +29,6 @@ Arguments
2729
enable = 1 means enable timeout report, enable = 0 means disable timeout
2830
reports.
2931

30-
3132
Description
3233
===========
3334

@@ -40,7 +41,6 @@ should be turned off.
4041

4142
This ioctl is only valid for :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>`.
4243

43-
4444
Return Value
4545
============
4646

0 commit comments

Comments
 (0)