]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/edac: fix leaf sysfs attribute
authorDouglas Thompson <dougthompson@xmission.com>
Thu, 19 Jul 2007 08:50:25 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:56 +0000 (10:04 -0700)
commit0ce6a877223f44ebf6a140cbe6bdf4a90fa8cc32
tree6862ba1ef11429b8ed51b005ad7db6ae4144e970
parentea5fe6e0d1cb0f65cc4cb2e17df025a1679ab248
drivers/edac: fix leaf sysfs attribute

This patch fixes and enhances the driver level set of sysfs attributes that
can be added to the 'block' level of an edac_device type of driver.

There is a controller information structure, which contains one or more
instances of device.  Each instance will have one or more blocks of device
specific counters.  This patch fixes the ability to have more detailed
attributes/controls for each of the 'blocks', providing for the addition of
controls/attributes from the low level driver to user space via sysfs.

Cc: Alan Cox alan@lxorguk.ukuu.org.uk
Signed-off-by: Douglas Thompson <dougthompson@xmission.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/edac_core.h
drivers/edac/edac_device.c
drivers/edac/edac_device_sysfs.c