Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit d073fd7f authored by Jim Cromie's avatar Jim Cromie Committed by Adrian Bunk
Browse files

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: default avatarJim Cromie <jim.cromie@gmail.com>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 4edc0285
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment