summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2007-02-26 03:31:01 +0100
committerAdrian Bunk <bunk@stusta.de>2007-02-26 03:31:01 +0100
commitd073fd7f362f2136b0d3a83b89f9b9bf262a67b8 (patch)
tree9a4abedb27a40a591d4bbc0f5354329cfa67f885 /ipc
parent4edc02857e1020e4c5db8be0b6df318253221ef2 (diff)
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: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions