[PATCH] hwmon: Refactor SENSOR_DEVICE_ATTR_2
authorJim Cromie <jim.cromie@gmail.com>
Wed, 18 Jan 2006 22:10:49 +0000 (23:10 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Mar 2006 22:21:50 +0000 (14:21 -0800)
commit70adca5a9f506942ec88fb2d9d6e71ef271888b7
tree3cd10be98bf800850881b93a8767b6af6fefa867
parentcdf263f1c59cad9b1567e759890b9be044972856
[PATCH] hwmon: Refactor SENSOR_DEVICE_ATTR_2

This patch refactors SENSOR_DEVICE_ATTR_2 macro, following pattern set by
SENSOR_ATTR.  First it creates a new macro SENSOR_ATTR_2() which expands
to an initialization expression, then it uses that in SENSOR_DEVICE_ATTR_2,
which declares and initializes a struct sensor_device_attribute_2.

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