diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-05-26 12:57:06 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-05-30 12:38:56 +0200 |
commit | a7291e7e03f8b45a4b028a410063dc94f9bff8c0 (patch) | |
tree | ce3b1fb35c9ec248fda763c446c66f53a12a2525 /scripts/kernel-doc | |
parent | kernel-doc/rst: reference functions according to C domain spec (diff) | |
download | linux-a7291e7e03f8b45a4b028a410063dc94f9bff8c0.tar.xz linux-a7291e7e03f8b45a4b028a410063dc94f9bff8c0.zip |
kernel-doc/rst: &foo references are more universal than structs
It's possible to use &foo to reference structs, enums, typedefs, etc. in
the Sphinx C domain. Thus do not prefix the links with "struct".
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-x | scripts/kernel-doc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index e8651d7cf1cd..e7aa792e7f1b 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -283,7 +283,8 @@ my @highlights_rst = ( [$type_func, "\\:c\\:func\\:`\$1()`"], [$type_struct_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"], [$type_enum_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"], - [$type_struct, "\\:c\\:type\\:`struct \$1 <\$1>`"], + # in rst this can refer to any type + [$type_struct, "\\:c\\:type\\:`\$1`"], [$type_param, "**\$1**"] ); my $blankline_rst = "\n"; |