media: cec-core.rst: fix warnings with Sphinx 3.0+
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 26 Sep 2020 07:08:38 +0000 (09:08 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 30 Sep 2020 16:50:20 +0000 (18:50 +0200)
commitc3cfc5f484e05e25bf855126bad949078f3dc590
treee9bd99b17c56faa93379ba587a7f2f59153e30e0
parent181220d469fe8f8c838d2f9d08fe05529fe6f440
media: cec-core.rst: fix warnings with Sphinx 3.0+

The new C domain code on Sphinx 3 is a lot more pedantic.
It only accepts real functions declared as c:function.

So, declarations like this are not valid:

.. c:function::
        int (*adap_enable)(struct cec_adapter *adap, bool enable);

Also, no blank lines are allowed after ".. c:function:", and
continuation lines should be like:

.. c:function:
int (void foo, \
     int bar);

Change the logic there, in order to avoid lots of warnings
when built with Sphinx 3.x.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Documentation/driver-api/media/cec-core.rst