commit | 9800794ac11d4646384b3a310dfd1fe2eed577bf | [log] [tgz] |
---|---|---|
author | Andi Kleen <andi@firstfloor.org> | Tue Jul 01 18:48:42 2008 +0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Mon Jul 21 21:55:02 2008 -0700 |
tree | e52c9c91d636c2d3e7891e4edee7e50f1a1ea5d1 | |
parent | 4a0b2b4dbe1335b8b9886ba3dc85a145d5d938ed [diff] |
sysdev: Add utility functions for simple int/ulong variable sysdev attributes This adds a new sysdev_ext_attribute that stores a pointer to the variable it manages and some utility functions/macro to easily use them. Previously all users wrote custom macros to generate show/store functions for each variable, with this it is possible to avoid that in many cases. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>