History

scripts: get_abi.pl: create a valid ReST with duplicated tags

As warned, /sys/bus/iio/devices/iio:deviceX/fault_ovuv is defined 2 times: Warning: /sys/bus/iio/devices/iio:deviceX/fault_ovuv is defined 2 times: ./Documentation/ABI/testing/sysfs-bus-iio-temperature-max31856:14 ./Documentation/ABI/testing/sysfs-bus-iio-temperature-max31865:0 The logic with joins the two entries is just places the paragraph for the second entry after the previous one. That could cause more warnings, as the produced ReST may become invalid, as in the case of this specific symbol, which ends with a table: /new_devel/v4l/docs/Documentation/ABI/testing/sysfs-bus-iio-temperature-max31856:2: WARNING: Malformed table. No bottom table border found or no blank line after table bottom. === ======================================================= '1' The input voltage is negative or greater than VDD. '0' The input voltage is positive and less than VDD (normal state). === ======================================================= /new_devel/v4l/docs/Documentation/ABI/testing/sysfs-bus-iio-temperature-max31856:2: WARNING: Blank line required after table. Address it by adding two blank lines before joining duplicated symbols.

Mauro Carvalho Chehab committed 5 years ago

Commit ff3777d1 parent d4771991 file · +1 −0Browse files

Unified · Split

scripts/get_abi.pl+1−0
@@ -180,6 +180,7 @@ sub parse_abi { · 179 unmodified lines
180 $data{$what}->{file} = $name;180 $data{$what}->{file} = $name;
181 $data{$what}->{filepath} = $file;181 $data{$what}->{filepath} = $file;
182 } else {182 } else {
183 $data{$what}->{description} .= "\n\n" if (defined($data{$what}->{description}));
183 if ($name ne $data{$what}->{file}) {184 if ($name ne $data{$what}->{file}) {
184 $data{$what}->{file} .= " " . $name;185 $data{$what}->{file} .= " " . $name;
185 $data{$what}->{filepath} .= " " . $file;186 $data{$what}->{filepath} .= " " . $file;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t