From: Simon Arlott Date: Fri, 11 May 2007 06:04:11 +0000 (-0700) Subject: USB: cxacru: Cleanup sysfs attribute code X-Git-Tag: v2.6.23-rc1~1083^2~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87e71b473ee199cf4b7b7a0ce890cd01f45e3a0e;p=pandora-kernel.git USB: cxacru: Cleanup sysfs attribute code This changes the format of unknown status values to be less verbose and uses an array instead of several different snprintf calls. Since only enum values are assigned to it, poll_state is changed from int to enum. Use abs() for dB values instead of two almost identical return lines. Signed-off-by: Simon Arlott Acked-by: Duncan Sands Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed