blob: 107672cdacb35c01714e3487609423092f247838 [file] [log] [blame]
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -03001#!/usr/bin/perl
Mauro Carvalho Chehabecb351f2019-06-20 14:23:10 -03002# SPDX-License-Identifier: GPL-2.0
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -03003
4use strict;
5use Pod::Usage;
6use Getopt::Long;
7use File::Find;
8use Fcntl ':mode';
9
10my $help;
11my $man;
12my $debug;
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -030013my $prefix="Documentation/ABI";
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030014
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +010015#
16# If true, assumes that the description is formatted with ReST
17#
18my $description_is_rst = 0;
19
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030020GetOptions(
21 "debug|d+" => \$debug,
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +010022 "rst-source!" => \$description_is_rst,
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -030023 "dir=s" => \$prefix,
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030024 'help|?' => \$help,
25 man => \$man
26) or pod2usage(2);
27
28pod2usage(1) if $help;
29pod2usage(-exitstatus => 0, -verbose => 2) if $man;
30
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -030031pod2usage(2) if (scalar @ARGV < 1 || @ARGV > 2);
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030032
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -030033my ($cmd, $arg) = @ARGV;
34
Mauro Carvalho Chehab7ce7b892019-06-20 14:23:04 -030035pod2usage(2) if ($cmd ne "search" && $cmd ne "rest" && $cmd ne "validate");
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -030036pod2usage(2) if ($cmd eq "search" && !$arg);
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030037
38require Data::Dumper if ($debug);
39
40my %data;
41
42#
43# Displays an error message, printing file name and line
44#
45sub parse_error($$$$) {
46 my ($file, $ln, $msg, $data) = @_;
47
48 print STDERR "file $file#$ln: $msg at\n\t$data";
49}
50
51#
52# Parse an ABI file, storing its contents at %data
53#
54sub parse_abi {
55 my $file = $File::Find::name;
56
57 my $mode = (stat($file))[2];
58 return if ($mode & S_IFDIR);
59 return if ($file =~ m,/README,);
60
61 my $name = $file;
62 $name =~ s,.*/,,;
63
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -030064 my $nametag = "File $name";
65 $data{$nametag}->{what} = "File $name";
66 $data{$nametag}->{type} = "File";
67 $data{$nametag}->{file} = $name;
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -030068 $data{$nametag}->{filepath} = $file;
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -030069 $data{$nametag}->{is_file} = 1;
70
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030071 my $type = $file;
72 $type =~ s,.*/(.*)/.*,$1,;
73
74 my $what;
75 my $new_what;
76 my $tag;
77 my $ln;
Mauro Carvalho Chehab6619c662019-06-20 14:22:56 -030078 my $xrefs;
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -030079 my $space;
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -030080 my @labels;
81 my $label;
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030082
83 print STDERR "Opening $file\n" if ($debug > 1);
84 open IN, $file;
85 while(<IN>) {
86 $ln++;
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -030087 if (m/^(\S+)(:\s*)(.*)/i) {
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030088 my $new_tag = lc($1);
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -030089 my $sep = $2;
90 my $content = $3;
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030091
Mauro Carvalho Chehab7ce7b892019-06-20 14:23:04 -030092 if (!($new_tag =~ m/(what|where|date|kernelversion|contact|description|users)/)) {
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030093 if ($tag eq "description") {
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -030094 # New "tag" is actually part of
95 # description. Don't consider it a tag
96 $new_tag = "";
Mauro Carvalho Chehab7d7ea8d2019-06-20 14:23:01 -030097 } elsif ($tag ne "") {
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -030098 parse_error($file, $ln, "tag '$tag' is invalid", $_);
99 }
100 }
101
Mauro Carvalho Chehab2c0700e2019-06-20 14:23:03 -0300102 # Invalid, but it is a common mistake
103 if ($new_tag eq "where") {
104 parse_error($file, $ln, "tag 'Where' is invalid. Should be 'What:' instead", $_);
105 $new_tag = "what";
106 }
107
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300108 if ($new_tag =~ m/what/) {
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300109 $space = "";
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300110 if ($tag =~ m/what/) {
111 $what .= ", " . $content;
112 } else {
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300113 parse_error($file, $ln, "What '$what' doesn't have a description", "") if ($what && !$data{$what}->{description});
114
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300115 $what = $content;
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300116 $label = $content;
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300117 $new_what = 1;
118 }
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300119 push @labels, [($content, $label)];
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300120 $tag = $new_tag;
Mauro Carvalho Chehab6619c662019-06-20 14:22:56 -0300121
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300122 push @{$data{$nametag}->{xrefs}}, [($content, $label)] if ($data{$nametag}->{what});
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300123 next;
124 }
125
Mauro Carvalho Chehab7d7ea8d2019-06-20 14:23:01 -0300126 if ($tag ne "" && $new_tag) {
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300127 $tag = $new_tag;
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300128
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300129 if ($new_what) {
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300130 @{$data{$what}->{label}} = @labels if ($data{$nametag}->{what});
131 @labels = ();
132 $label = "";
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300133 $new_what = 0;
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300134
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300135 $data{$what}->{type} = $type;
136 $data{$what}->{file} = $name;
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300137 $data{$what}->{filepath} = $file;
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300138 print STDERR "\twhat: $what\n" if ($debug > 1);
139 }
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300140
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300141 if (!$what) {
142 parse_error($file, $ln, "'What:' should come first:", $_);
143 next;
144 }
145 if ($tag eq "description") {
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +0100146 # Preserve initial spaces for the first line
147 $content = ' ' x length($new_tag) . $sep . $content;
148 $content =~ s,^(\s*):,$1 ,;
149 if ($content =~ m/^(\s*)(.*)$/) {
150 $space = $1;
151 $content = $2;
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300152 }
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +0100153 while ($space =~ s/\t+/' ' x (length($&) * 8 - length($`) % 8)/e) {}
154 $data{$what}->{$tag} .= $content;
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300155 } else {
156 $data{$what}->{$tag} = $content;
157 }
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300158 next;
159 }
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300160 }
161
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300162 # Store any contents before tags at the database
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300163 if (!$tag && $data{$nametag}->{what}) {
164 $data{$nametag}->{description} .= $_;
Mauro Carvalho Chehab6619c662019-06-20 14:22:56 -0300165 next;
166 }
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300167
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300168 if ($tag eq "description") {
169 if (!$data{$what}->{description}) {
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +0100170 s/^($space)//;
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300171 if (m/^(\s*)(.*)/) {
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +0100172 my $sp = $1;
173 while ($sp =~ s/\t+/' ' x (length($&) * 8 - length($`) % 8)/e) {}
174 my $content = "$sp$2";
175
176 $content =~ s/^($space)//;
177
178 $data{$what}->{$tag} .= "$content";
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300179 }
180 } else {
181 my $content = $_;
182 if (m/^\s*\n/) {
183 $data{$what}->{$tag} .= $content;
184 next;
185 }
186
187 while ($content =~ s/\t+/' ' x (length($&) * 8 - length($`) % 8)/e) {}
188 $space = "" if (!($content =~ s/^($space)//));
189
190 # Compress spaces with tabs
191 $content =~ s<^ {8}> <\t>;
192 $content =~ s<^ {1,7}\t> <\t>;
193 $content =~ s< {1,7}\t> <\t>;
194 $data{$what}->{$tag} .= $content;
195 }
196 next;
197 }
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300198 if (m/^\s*(.*)/) {
199 $data{$what}->{$tag} .= "\n$1";
200 $data{$what}->{$tag} =~ s/\n+$//;
201 next;
202 }
203
204 # Everything else is error
205 parse_error($file, $ln, "Unexpected line:", $_);
206 }
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300207 $data{$nametag}->{description} =~ s/^\n+//;
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300208 close IN;
209}
210
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300211#
212# Outputs the book on ReST format
213#
Mauro Carvalho Chehab45f96512019-06-20 14:23:00 -0300214
Mauro Carvalho Chehab2e7ce052019-06-20 14:23:02 -0300215my %labels;
216
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300217sub output_rest {
Mauro Carvalho Chehab45f96512019-06-20 14:23:00 -0300218 foreach my $what (sort {
219 ($data{$a}->{type} eq "File") cmp ($data{$b}->{type} eq "File") ||
220 $a cmp $b
221 } keys %data) {
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300222 my $type = $data{$what}->{type};
223 my $file = $data{$what}->{file};
Mauro Carvalho Chehab45f96512019-06-20 14:23:00 -0300224 my $filepath = $data{$what}->{filepath};
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300225
226 my $w = $what;
227 $w =~ s/([\(\)\_\-\*\=\^\~\\])/\\$1/g;
228
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300229
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300230 foreach my $p (@{$data{$what}->{label}}) {
231 my ($content, $label) = @{$p};
232 $label = "abi_" . $label . " ";
233 $label =~ tr/A-Z/a-z/;
234
235 # Convert special chars to "_"
236 $label =~s/([\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xff])/_/g;
237 $label =~ s,_+,_,g;
238 $label =~ s,_$,,;
239
Mauro Carvalho Chehab2e7ce052019-06-20 14:23:02 -0300240 # Avoid duplicated labels
241 while (defined($labels{$label})) {
242 my @chars = ("A".."Z", "a".."z");
243 $label .= $chars[rand @chars];
244 }
245 $labels{$label} = 1;
246
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300247 $data{$what}->{label} .= $label;
248
249 printf ".. _%s:\n\n", $label;
250
251 # only one label is enough
252 last;
Mauro Carvalho Chehab6619c662019-06-20 14:22:56 -0300253 }
254
Mauro Carvalho Chehab6619c662019-06-20 14:22:56 -0300255
Mauro Carvalho Chehab45f96512019-06-20 14:23:00 -0300256 $filepath =~ s,.*/(.*/.*),\1,;;
257 $filepath =~ s,[/\-],_,g;;
258 my $fileref = "abi_file_".$filepath;
259
260 if ($type eq "File") {
261 my $bar = $w;
262 $bar =~ s/./-/g;
263
264 print ".. _$fileref:\n\n";
265 print "$w\n$bar\n\n";
266 } else {
267 my @names = split /\s*,\s*/,$w;
268
269 my $len = 0;
270
271 foreach my $name (@names) {
272 $len = length($name) if (length($name) > $len);
273 }
274
275 print "What:\n\n";
276
277 print "+-" . "-" x $len . "-+\n";
278 foreach my $name (@names) {
279 printf "| %s", $name . " " x ($len - length($name)) . " |\n";
280 print "+-" . "-" x $len . "-+\n";
281 }
282 print "\n";
283 }
284
285 print "Defined on file :ref:`$file <$fileref>`\n\n" if ($type ne "File");
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300286
287 my $desc = $data{$what}->{description};
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300288
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300289 if (!($desc =~ /^\s*$/)) {
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +0100290 if ($description_is_rst) {
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300291 print "$desc\n\n";
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +0100292 } else {
293 $desc =~ s/^\s+//;
294
295 # Remove title markups from the description, as they won't work
296 $desc =~ s/\n[\-\*\=\^\~]+\n/\n\n/g;
297
298 if ($desc =~ m/\:\n/ || $desc =~ m/\n[\t ]+/ || $desc =~ m/[\x00-\x08\x0b-\x1f\x7b-\xff]/) {
299 # put everything inside a code block
300 $desc =~ s/\n/\n /g;
301
302 print "::\n\n";
303 print " $desc\n\n";
304 } else {
305 # Escape any special chars from description
306 $desc =~s/([\x00-\x08\x0b-\x1f\x21-\x2a\x2d\x2f\x3c-\x40\x5c\x5e-\x60\x7b-\xff])/\\$1/g;
307 print "$desc\n\n";
308 }
Mauro Carvalho Chehab4e6a6232019-06-20 14:22:57 -0300309 }
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300310 } else {
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300311 print "DESCRIPTION MISSING for $what\n\n" if (!$data{$what}->{is_file});
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300312 }
Mauro Carvalho Chehab6619c662019-06-20 14:22:56 -0300313
Mauro Carvalho Chehabd0ebaf52019-06-20 14:22:58 -0300314 if ($data{$what}->{xrefs}) {
315 printf "Has the following ABI:\n\n";
316
317 foreach my $p(@{$data{$what}->{xrefs}}) {
318 my ($content, $label) = @{$p};
319 $label = "abi_" . $label . " ";
320 $label =~ tr/A-Z/a-z/;
321
322 # Convert special chars to "_"
323 $label =~s/([\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xff])/_/g;
324 $label =~ s,_+,_,g;
325 $label =~ s,_$,,;
326
327 # Escape special chars from content
328 $content =~s/([\x00-\x1f\x21-\x2f\x3a-\x40\x7b-\xff])/\\$1/g;
329
330 print "- :ref:`$content <$label>`\n\n";
331 }
332 }
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300333 }
334}
335
336#
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300337# Searches for ABI symbols
338#
339sub search_symbols {
340 foreach my $what (sort keys %data) {
341 next if (!($what =~ m/($arg)/));
342
343 my $type = $data{$what}->{type};
344 next if ($type eq "File");
345
346 my $file = $data{$what}->{filepath};
347
348 my $bar = $what;
349 $bar =~ s/./-/g;
350
351 print "\n$what\n$bar\n\n";
352
353 my $kernelversion = $data{$what}->{kernelversion};
354 my $contact = $data{$what}->{contact};
355 my $users = $data{$what}->{users};
356 my $date = $data{$what}->{date};
357 my $desc = $data{$what}->{description};
358 $kernelversion =~ s/^\s+//;
359 $contact =~ s/^\s+//;
360 $users =~ s/^\s+//;
361 $users =~ s/\n//g;
362 $date =~ s/^\s+//;
363 $desc =~ s/^\s+//;
364
365 printf "Kernel version:\t\t%s\n", $kernelversion if ($kernelversion);
366 printf "Date:\t\t\t%s\n", $date if ($date);
367 printf "Contact:\t\t%s\n", $contact if ($contact);
368 printf "Users:\t\t\t%s\n", $users if ($users);
369 print "Defined on file:\t$file\n\n";
370 print "Description:\n\n$desc";
371 }
372}
373
374
375#
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300376# Parses all ABI files located at $prefix dir
377#
378find({wanted =>\&parse_abi, no_chdir => 1}, $prefix);
379
380print STDERR Data::Dumper->Dump([\%data], [qw(*data)]) if ($debug);
381
382#
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300383# Handles the command
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300384#
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300385if ($cmd eq "rest") {
386 output_rest;
Mauro Carvalho Chehab7ce7b892019-06-20 14:23:04 -0300387} elsif ($cmd eq "search") {
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300388 search_symbols;
389}
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300390
391
392__END__
393
394=head1 NAME
395
396abi_book.pl - parse the Linux ABI files and produce a ReST book.
397
398=head1 SYNOPSIS
399
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +0100400B<abi_book.pl> [--debug] [--man] [--help] --[(no-)rst-source] [--dir=<dir>] <COMAND> [<ARGUMENT>]
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300401
402Where <COMMAND> can be:
403
404=over 8
405
406B<search> [SEARCH_REGEX] - search for [SEARCH_REGEX] inside ABI
407
Mauro Carvalho Chehab7ce7b892019-06-20 14:23:04 -0300408B<rest> - output the ABI in ReST markup language
409
410B<validate> - validate the ABI contents
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300411
412=back
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300413
414=head1 OPTIONS
415
416=over 8
417
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300418=item B<--dir>
419
420Changes the location of the ABI search. By default, it uses
421the Documentation/ABI directory.
422
Mauro Carvalho Chehab11ce90a2020-10-30 08:40:20 +0100423=item B<--rst-source> and B<--no-rst-source>
424
425The input file may be using ReST syntax or not. Those two options allow
426selecting between a rst-compliant source ABI (--rst-source), or a
427plain text that may be violating ReST spec, so it requres some escaping
428logic (--no-rst-source).
429
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300430=item B<--debug>
431
432Put the script in verbose mode, useful for debugging. Can be called multiple
433times, to increase verbosity.
434
435=item B<--help>
436
437Prints a brief help message and exits.
438
439=item B<--man>
440
441Prints the manual page and exits.
442
443=back
444
445=head1 DESCRIPTION
446
Mauro Carvalho Chehab33e3e992019-06-20 14:22:59 -0300447Parse the Linux ABI files from ABI DIR (usually located at Documentation/ABI),
448allowing to search for ABI symbols or to produce a ReST book containing
449the Linux ABI documentation.
450
451=head1 EXAMPLES
452
453Search for all stable symbols with the word "usb":
454
455=over 8
456
457$ scripts/get_abi.pl search usb --dir Documentation/ABI/stable
458
459=back
460
461Search for all symbols that match the regex expression "usb.*cap":
462
463=over 8
464
465$ scripts/get_abi.pl search usb.*cap
466
467=back
468
469Output all obsoleted symbols in ReST format
470
471=over 8
472
473$ scripts/get_abi.pl rest --dir Documentation/ABI/obsolete
474
475=back
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300476
477=head1 BUGS
478
Mauro Carvalho Chehab7ce7b892019-06-20 14:23:04 -0300479Report bugs to Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300480
481=head1 COPYRIGHT
482
Mauro Carvalho Chehab7ce7b892019-06-20 14:23:04 -0300483Copyright (c) 2016-2019 by Mauro Carvalho Chehab <mchehab+samsung@kernel.org>.
Mauro Carvalho Chehabbbc249f2019-06-20 14:22:55 -0300484
485License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>.
486
487This is free software: you are free to change and redistribute it.
488There is NO WARRANTY, to the extent permitted by law.
489
490=cut