]> git.baikalelectronics.ru Git - kernel.git/commit
sysdev: Pass attribute in sysdev_class attributes show/store
authorAndi Kleen <andi@firstfloor.org>
Tue, 5 Jan 2010 11:47:58 +0000 (12:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:47 +0000 (17:04 -0800)
commitc2c5ec46bfe1b6808f557c83b949ab818e008c79
tree23fcf49f277d9a093b2b29831811219410ad7b05
parent94eba81224e783791c6ccd026f6cb7bde3a23616
sysdev: Pass attribute in sysdev_class attributes show/store

Passing the attribute to the low level IO functions allows all kinds
of cleanups, by sharing low level IO code without requiring
an own function for every piece of data.

Also drivers can extend the attributes with own data fields
and use that in the low level function.

Similar to sysdev_attributes and normal attributes.

This is a tree-wide sweep, converting everything in one go.

No functional changes in this patch other than passing the new
argument everywhere.

Tested on x86, the non x86 parts are uncompiled.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/mips/txx9/generic/7segled.c
arch/s390/kernel/smp.c
arch/s390/kernel/time.c
drivers/base/cpu.c
drivers/base/node.c
drivers/base/sys.c
drivers/cpuidle/sysfs.c
include/linux/sysdev.h
kernel/perf_event.c
kernel/sched.c