]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: cxacru: Cleanup sysfs attribute code
authorSimon Arlott <simon@fire.lp0.eu>
Fri, 11 May 2007 06:04:11 +0000 (23:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:29:45 +0000 (16:29 -0700)
commit87e71b473ee199cf4b7b7a0ce890cd01f45e3a0e
tree9701f316dc0a26fd5a6a342668090363e6e25bec
parent6dbd682b7c6d58916096616cdf94852641bc09d9
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 <simon@fire.lp0.eu>
Acked-by: 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>
drivers/usb/atm/cxacru.c