History

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.

Mauro Carvalho Chehab committed 7 years ago

Commit 458f69e1 parent 4ca9bc214 files · +84 −43Browse files

Showing the changes to scripts/checkpatch.pl (1 of 14 files). Show all

Unified · Split

scripts/checkpatch.pl+4−4
@@ -5712,7 +5712,7 @@ sub process { · 5711 unmodified lines
57125712 # ignore udelay's < 10, however
57135713 if (! ($delay < 10) ) {
57145714 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);
57165716 }
57175717 if ($delay > 2000) {
57185718 WARN("LONG_UDELAY",
@@ -5724,7 +5724,7 @@ sub process { · 5 unmodified lines
57245724 if ($line =~ /\bmsleep\s*\((\d+)\);/) {
57255725 if ($1 < 20) {
57265726 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);
57285728 }
57295729 }
57305730
@@ -6115,11 +6115,11 @@ sub process { · 384 unmodified lines
61156115 my $max = $7;
61166116 if ($min eq $max) {
61176117 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");
61196119 } elsif ($min =~ /^\d+$/ && $max =~ /^\d+$/ &&
61206120 $min > $max) {
61216121 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");
61236123 }
61246124 }
61256125