projects
/
linux-gpio-pinout
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b32e522
)
add sck/sda to i2c
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 9 Nov 2017 14:36:14 +0000
(15:36 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 9 Nov 2017 14:36:14 +0000
(15:36 +0100)
gpio.pl
patch
|
blob
|
history
diff --git
a/gpio.pl
b/gpio.pl
index
564e423
..
ecad503
100755
(executable)
--- a/
gpio.pl
+++ b/
gpio.pl
@@
-98,6
+98,7
@@
foreach my $line (@lines) {
next;
}
$line =~ s/(\[uart\d)(\]\s[^\t]*(rx|tx))/$1 $3$2/gi;
+ $line =~ s/(\[i2c\d)(\]\s[^\t]*(sck|sda))/$1 $3$2/gi;
$line =~ s/\s*\([^\)]+\)//g if ! $opt_alt;
my @v = split(/\s*\t+\s*/,$line,4);