[media] docs-rst: simplify c:type: cross references
Instead of using c:type:`struct foo <foo>`, use: struct c:type:`foo` This patch was generated via this shell script: for i in `find Documentation/media -type f`; do perl -ne 'if (m/\:c\:type\:\`struct\s+(\S+)\s*\<(\S+)\>\`/) { $s=$1; $r=$2; if ($s eq $r) { s/\:c\:type\:\`struct\s+(\S+)\s*\<(\S+)\>\`/struct :c:type:`$2`/; s/struct\s+struct/struct/; s/(struct\s+\:c\:type\:\`\S+\`)\s+structure/$1/; }} print $_' <$i >a && mv a $i; done Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
@@ -66,7 +66,7 @@ whether the specified control class is supported.
|
||||
|
||||
The control array is a struct
|
||||
:c:type:`v4l2_ext_control` array. The
|
||||
:c:type:`struct v4l2_ext_control <v4l2_ext_control>` structure is very similar to
|
||||
struct :c:type:`v4l2_ext_control` is very similar to
|
||||
struct :c:type:`v4l2_control`, except for the fact that
|
||||
it also allows for 64-bit values and pointers to be passed.
|
||||
|
||||
|
Reference in New Issue
Block a user