dahdi-tools/xpp/perl_modules/Dahdi
Oron Peled 3572bb5a13 xpp: sysfs access cleanups
With /proc/xpp code removed, some cleanup can be done.

* No need to search alternative attribute names, so xbus_attr_path() is
  redundant.

* Don't compose xbus sysfs directory in multiple code locations.
  Do it once in Xbus->new() and use the result ($xbus->sysfs_dir)

* Pass XPD directory strings directly to Xpd->new()
  - So we parse it for unit/subunit only in Xpd->new()

* Don't parse xbus sysfs name:
  - Toplevel scan, pass it as is to Xbus->new()
  - Xbus->new() deduce the xbus->num from the naming
    of Xpd's inside (nnⓂ️k) -- this is a hack until
    we add xbus number as an xbus sysfs attribute

Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10494 17933a7a-c749-41c5-a318-cba88f637d49
2012-03-15 20:32:27 +00:00
..
Config xpp_order generator: ignore EC XPD 2011-10-23 14:28:40 +00:00
Hardware DAHDI-perl: Fix PCI ID for Rhino R4T1 (0b0b:0305) 2011-11-30 20:15:33 +00:00
Xpp xpp: sysfs access cleanups 2012-03-15 20:32:27 +00:00
Chans.pm dahdi-perl: more left-over $span->xpd 2011-02-06 18:39:57 +00:00
Hardware.pm Import DAHDI-Tools r9159 2010-08-18 13:49:24 +00:00
Span.pm dahdi_genconf: Allow it to recognize the TE8xx 8-port cards. 2011-11-02 20:55:52 +00:00
Utils.pm xpp: perl_modules: Remove /proc/xpp usage 2012-03-15 20:30:41 +00:00
Xpp.pm xpp: sysfs access cleanups 2012-03-15 20:32:27 +00:00