kernel-doc: cleanup parameter type in function-typed arguments
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Jan 2017 15:22:23 +0000 (16:22 +0100)
committerJonathan Corbet <corbet@lwn.net>
Wed, 4 Jan 2017 22:07:23 +0000 (15:07 -0700)
commit02a4f4fe522c29bcd4a61e094f7fe8d64f00ee06
tree5191feb2dc9716e9cdc563fbea2cc7777997b13f
parentf2c1a053ceedec87aa355fafe60db1af27d7d830
kernel-doc: cleanup parameter type in function-typed arguments

A prototype like

    /**
     * foo - sample definition
     * @bar: a parameter
     */
    int foo(int (*bar)(int x,
                       int y));

is currently producing

    .. c:function:: int foo (int (*bar) (int x,                    int y)

       sample definition

    **Parameters**

    ``int (*)(int x,                    int y) bar``
      a parameter

Collapse the spaces so that the output is nicer.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc