USB: cxacru: export detailed device info through sysfs
authorSimon Arlott <simon@arlott.org>
Tue, 6 Mar 2007 10:47:45 +0000 (02:47 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:34 +0000 (13:28 -0700)
commitfa70fe44aba95ce373d7bcd27df4a594b53dcbdc
tree9aa3ae5dca5189ca3fb727c0b0ab2d412a7d1a32
parente9b8daf31b459acb440647a651b1bda3b30e6188
USB: cxacru: export detailed device info through sysfs

When the device is polled for status there is a lot of useful status
information available that is ignored.  This patch stores the device info
array when the status is polled and adds sysfs files to the usb device to
allow userspace to query it.  Since the device updates its status
internally once a second the poll time is changed to this, and
round_jiffies_relative is used to avoid waking the cpu unnecessarily.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Cc: Duncan Sands <duncan.sands@free.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/cxacru.c