diff options
author | Simon Arlott <simon@arlott.org> | 2007-03-06 02:47:43 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-04-27 13:28:34 -0700 |
commit | e9b8daf31b459acb440647a651b1bda3b30e6188 (patch) | |
tree | 6ac500a77eb7bd2b2915566d982b5b40c24ff47b /drivers/usb/atm/cxacru.c | |
parent | c2cf3f6ec58cf1d9e2a92cd74506dcf2265b31a1 (diff) | |
download | lwn-e9b8daf31b459acb440647a651b1bda3b30e6188.tar.gz lwn-e9b8daf31b459acb440647a651b1bda3b30e6188.zip |
usbatm: create sysfs link "device" from atm class device to usb interface
There is currently no path from the ATM device in /sys to the USB device's
interface that the driver is using; this patch creates a "device" symlink. It
is then possible to get to the cxacru ADSL statistics
(http://lkml.org/lkml/2007/2/23/328):
/sys/class/atm/cxacru0/device $ ls *_rate *_margin *_attenuation
downstream_attenuation downstream_snr_margin upstream_rate
downstream_rate upstream_attenuation upstream_snr_margin
If this link is not appropriate I'd have to create device files in
/sys/class/atm/cxacru0 instead - which seems less appropriate since the ADSL
statistics are for the USB device not ATM (which is running over the ADSL).
[akpm@linux-foundation.org: cleanups]
Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Cc: Duncan Sands <duncan.sands@math.u-psud.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/atm/cxacru.c')
0 files changed, 0 insertions, 0 deletions