Skip to content
Commit 5130f862 authored by Jim Cromie's avatar Jim Cromie Committed by Adrian Bunk
Browse files

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