From: Jim Cromie Date: Mon, 9 Jan 2006 22:22:24 +0000 (+0100) Subject: [PATCH] hwmon: Allow sensor attributes arrays X-Git-Tag: v2.6.17-rc1~997^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d3b83fecb7b576d477244347982baa02fa4f44;p=pandora-kernel.git [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 Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed