]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] hwmon: Allow sensor attributes arrays
authorJim Cromie <jim.cromie@gmail.com>
Mon, 9 Jan 2006 22:22:24 +0000 (23:22 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Mar 2006 22:21:48 +0000 (14:21 -0800)
commitc41a2497d82324f8900532a390399d9a38fd8ed0
tree42c799763f3b908a554f050c1b8990e5f41bb7ac
parenta28cdb9ca0f7c3d371b0253237894f41c282b921
[PATCH] hwmon: Allow sensor attributes arrays

This patch refactors SENSOR_DEVICE_ATTR macro.  First it creates a new
macro SENSOR_ATTR() which expands to an initialization expression, then
it uses that in SENSOR_DEVICE_ATTR, which declares and initializes a
struct sensor_device_attribute.

IOW, SENSOR_ATTR() imitates __ATTR() in include/linux/device.h.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/hwmon-sysfs.h