From: Simon Arlott Date: Tue, 6 Mar 2007 10:47:45 +0000 (-0800) Subject: USB: cxacru: export detailed device info through sysfs X-Git-Tag: v2.6.22-rc1~1117^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa70fe44aba95ce373d7bcd27df4a594b53dcbdc;p=pandora-kernel.git 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 Cc: Duncan Sands Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed