Skip to content

Commit 92425d0

Browse files
bagasmekuba-moo
authored andcommitted
Documentation: dpll: Fix code blocks
kernel test robot and Stephen Rothwell report htmldocs warnings: Documentation/driver-api/dpll.rst:427: WARNING: Error in "code-block" directive: maximum 1 argument(s) allowed, 18 supplied. .. code-block:: c <snipped>... Documentation/driver-api/dpll.rst:444: WARNING: Error in "code-block" directive: maximum 1 argument(s) allowed, 21 supplied. .. code-block:: c <snipped>... Documentation/driver-api/dpll.rst:474: WARNING: Error in "code-block" directive: maximum 1 argument(s) allowed, 12 supplied. .. code-block:: c <snipped>... Fix these above by adding missing blank line separator after code-block directive. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202309180456.lOhxy9gS-lkp@intel.com/ Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/linux-next/20230918131521.155e9e63@canb.auug.org.au/ Fixes: dbb291f ("dpll: documentation on DPLL subsystem interface") Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://lore.kernel.org/r/20230928052708.44820-2-bagasdotme@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 0e0c52d commit 92425d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/driver-api/dpll.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ The simplest implementation is in the OCP TimeCard driver. The ops
425425
structures are defined like this:
426426

427427
.. code-block:: c
428+
428429
static const struct dpll_device_ops dpll_ops = {
429430
.lock_status_get = ptp_ocp_dpll_lock_status_get,
430431
.mode_get = ptp_ocp_dpll_mode_get,
@@ -442,6 +443,7 @@ structures are defined like this:
442443
The registration part is then looks like this part:
443444

444445
.. code-block:: c
446+
445447
clkid = pci_get_dsn(pdev);
446448
bp->dpll = dpll_device_get(clkid, 0, THIS_MODULE);
447449
if (IS_ERR(bp->dpll)) {
@@ -472,6 +474,7 @@ The registration part is then looks like this part:
472474
In the error path we have to rewind every allocation in the reverse order:
473475

474476
.. code-block:: c
477+
475478
while (i) {
476479
--i;
477480
dpll_pin_unregister(bp->dpll, bp->sma[i].dpll_pin, &dpll_pins_ops, &bp->sma[i]);

0 commit comments

Comments
 (0)