summaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2016-05-26 06:57:06 -0400
committerJani Nikula <jani.nikula@intel.com>2016-05-30 06:38:56 -0400
commita7291e7e03f8b45a4b028a410063dc94f9bff8c0 (patch)
treece3b1fb35c9ec248fda763c446c66f53a12a2525 /scripts/kernel-doc
parenta19bce6433c2566dd210f4245525c297ca952574 (diff)
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-xscripts/kernel-doc3
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 = (
283 [$type_func, "\\:c\\:func\\:`\$1()`"], 283 [$type_func, "\\:c\\:func\\:`\$1()`"],
284 [$type_struct_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"], 284 [$type_struct_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"],
285 [$type_enum_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"], 285 [$type_enum_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"],
286 [$type_struct, "\\:c\\:type\\:`struct \$1 <\$1>`"], 286 # in rst this can refer to any type
287 [$type_struct, "\\:c\\:type\\:`\$1`"],
287 [$type_param, "**\$1**"] 288 [$type_param, "**\$1**"]
288 ); 289 );
289my $blankline_rst = "\n"; 290my $blankline_rst = "\n";