diff options
| author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-12 13:53:00 -0400 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2019-06-14 16:31:48 -0400 |
| commit | 458f69ef36656dc74679667380422dd8063eabfb (patch) | |
| tree | c44aafca54ae7d01160fe8ef09e7999594145a67 /scripts/checkpatch.pl | |
| parent | 4ca9bc225e46eb7bc040dd948be7cb68975d80d3 (diff) | |
docs: timers: convert docs to ReST and rename to *.rst
The conversion here is really trivial: just a bunch of title
markups and very few puntual changes is enough to make it to
be parsed by Sphinx and generate a nice html.
The conversion is actually:
- add blank lines and identation in order to identify paragraphs;
- fix tables markups;
- add some lists markups;
- mark literal blocks;
- adjust title markups.
At its new index.rst, let's add a :orphan: while this is not linked to
the main index.rst file, in order to avoid build warnings.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 342c7c781ba5..a6d436809bf5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -5712,7 +5712,7 @@ sub process { | |||
| 5712 | # ignore udelay's < 10, however | 5712 | # ignore udelay's < 10, however |
| 5713 | if (! ($delay < 10) ) { | 5713 | if (! ($delay < 10) ) { |
| 5714 | CHK("USLEEP_RANGE", | 5714 | CHK("USLEEP_RANGE", |
| 5715 | "usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt\n" . $herecurr); | 5715 | "usleep_range is preferred over udelay; see Documentation/timers/timers-howto.rst\n" . $herecurr); |
| 5716 | } | 5716 | } |
| 5717 | if ($delay > 2000) { | 5717 | if ($delay > 2000) { |
| 5718 | WARN("LONG_UDELAY", | 5718 | WARN("LONG_UDELAY", |
| @@ -5724,7 +5724,7 @@ sub process { | |||
| 5724 | if ($line =~ /\bmsleep\s*\((\d+)\);/) { | 5724 | if ($line =~ /\bmsleep\s*\((\d+)\);/) { |
| 5725 | if ($1 < 20) { | 5725 | if ($1 < 20) { |
| 5726 | WARN("MSLEEP", | 5726 | WARN("MSLEEP", |
| 5727 | "msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt\n" . $herecurr); | 5727 | "msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.rst\n" . $herecurr); |
| 5728 | } | 5728 | } |
| 5729 | } | 5729 | } |
| 5730 | 5730 | ||
| @@ -6115,11 +6115,11 @@ sub process { | |||
| 6115 | my $max = $7; | 6115 | my $max = $7; |
| 6116 | if ($min eq $max) { | 6116 | if ($min eq $max) { |
| 6117 | WARN("USLEEP_RANGE", | 6117 | WARN("USLEEP_RANGE", |
| 6118 | "usleep_range should not use min == max args; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n"); | 6118 | "usleep_range should not use min == max args; see Documentation/timers/timers-howto.rst\n" . "$here\n$stat\n"); |
| 6119 | } elsif ($min =~ /^\d+$/ && $max =~ /^\d+$/ && | 6119 | } elsif ($min =~ /^\d+$/ && $max =~ /^\d+$/ && |
| 6120 | $min > $max) { | 6120 | $min > $max) { |
| 6121 | WARN("USLEEP_RANGE", | 6121 | WARN("USLEEP_RANGE", |
| 6122 | "usleep_range args reversed, use min then max; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n"); | 6122 | "usleep_range args reversed, use min then max; see Documentation/timers/timers-howto.rst\n" . "$here\n$stat\n"); |
| 6123 | } | 6123 | } |
| 6124 | } | 6124 | } |
| 6125 | 6125 | ||
