Re: [PATCH (rev 2)] cxacru: Cleanup sysfs attribute code

2007-04-28 Thread Simon Arlott
On 28/04/07 08:50, Andrew Morton wrote: On Wed, 25 Apr 2007 19:41:20 +0100 Simon Arlott <[EMAIL PROTECTED]> wrote: 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_s

Re: [PATCH (rev 2)] cxacru: Cleanup sysfs attribute code

2007-04-28 Thread Andrew Morton
On Wed, 25 Apr 2007 19:41:20 +0100 Simon Arlott <[EMAIL PROTECTED]> wrote: > 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.

Re: [PATCH (rev 2)] cxacru: Cleanup sysfs attribute code

2007-04-25 Thread Duncan Sands
On Wednesday 25 April 2007 20:41:20 Simon Arlott wrote: > 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 v

[PATCH (rev 2)] cxacru: Cleanup sysfs attribute code

2007-04-25 Thread Simon Arlott
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