]> git.baikalelectronics.ru Git - kernel.git/commit
driver-core: Add attribute argument to class_attribute show/store
authorAndi Kleen <andi@firstfloor.org>
Tue, 5 Jan 2010 11:48:07 +0000 (12:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:48 +0000 (17:04 -0800)
commit60931c5de92d73791787882ff98ddaf727ee4eef
treec78daefd595989bbc660ea48d8bc2dc5750321d3
parentf28d15856b69f3a8d058e6435a457457b16ef3ee
driver-core: Add attribute argument to class_attribute 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.

This makes the class attributes the same as sysdev_class attributes
and plain attributes.

This will allow further cleanups in drivers.

Full tree sweep converting all users.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21 files changed:
drivers/base/class.c
drivers/base/cpu.c
drivers/base/firmware_class.c
drivers/base/memory.c
drivers/block/osdblk.c
drivers/block/pktcdvd.c
drivers/gpio/gpiolib.c
drivers/gpu/drm/drm_sysfs.c
drivers/infiniband/core/ucm.c
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/uverbs_main.c
drivers/misc/phantom.c
drivers/mtd/ubi/build.c
drivers/net/bonding/bond_sysfs.c
drivers/staging/asus_oled/asus_oled.c
drivers/uwb/driver.c
include/linux/device.h
net/bluetooth/l2cap.c
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/sock.c
net/bluetooth/sco.c