From: Jim Cromie Date: Wed, 18 Jan 2006 22:10:49 +0000 (+0100) Subject: [PATCH] hwmon: Refactor SENSOR_DEVICE_ATTR_2 X-Git-Tag: v2.6.17-rc1~997^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70adca5a9f506942ec88fb2d9d6e71ef271888b7;p=pandora-kernel.git [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 Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed