[dahdi-commits] tzafrir: linux/trunk r10475 - /linux/trunk/drivers/dahdi/xpp/init_card_1_30
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Mar 15 07:50:53 CDT 2012
Author: tzafrir
Date: Thu Mar 15 07:50:49 2012
New Revision: 10475
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10475
Log:
xpp: init_card: better variable naming
Signed-off-by: Oron Peled <oron.peled at xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
linux/trunk/drivers/dahdi/xpp/init_card_1_30
Modified: linux/trunk/drivers/dahdi/xpp/init_card_1_30
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/init_card_1_30?view=diff&rev=10475&r1=10474&r2=10475
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/init_card_1_30 (original)
+++ linux/trunk/drivers/dahdi/xpp/init_card_1_30 Thu Mar 15 07:50:49 2012
@@ -51,7 +51,7 @@
use XppConfig $init_dir;
my $unit_id;
my %opts;
-my $vbat_48 = 0;
+my $eeprom_release_201 = 0;
getopts('o:', \%opts);
@@ -94,7 +94,7 @@
}
logit "XBUS_MODEL_STRING='$ENV{XBUS_MODEL_STRING}'";
if ($ENV{XBUS_MODEL_STRING} =~ m{.*/.*/201}) {
- $vbat_48 = 1;
+ $eeprom_release_201 = 1;
}
$chipregs = sprintf "/sys/bus/xpds/devices/%02d:%1d:0/chipregs",
$ENV{XBUS_NUMBER}, $ENV{UNIT_NUMBER};
@@ -292,8 +292,8 @@
}
sub init_early_direct_regs() {
- my $lbv = ($vbat_48) ? "20" : "10";
- my $vcm = ($vbat_48) ? "02" : "03";
+ my $lbv = ($eeprom_release_201) ? "20" : "10";
+ my $vcm = ($eeprom_release_201) ? "02" : "03";
return write_to_slic_file("#
* WD 08 00 # Audio Path Loopback Control
More information about the dahdi-commits
mailing list