#include <linux/device.h>
Go to the source code of this file.
|
#define | to_sensor_dev_attr(_dev_attr) container_of(_dev_attr, struct sensor_device_attribute, dev_attr) |
|
#define | SENSOR_ATTR(_name, _mode, _show, _store, _index) |
|
#define | SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) |
|
#define | to_sensor_dev_attr_2(_dev_attr) container_of(_dev_attr, struct sensor_device_attribute_2, dev_attr) |
|
#define | SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index) |
|
#define | SENSOR_DEVICE_ATTR_2(_name, _mode, _show, _store, _nr, _index) |
|
#define SENSOR_ATTR |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_show, |
|
|
|
_store, |
|
|
|
_index |
|
) |
| |
Value:{ .dev_attr =
__ATTR(_name, _mode, _show, _store), \
.index = _index }
Definition at line 32 of file hwmon-sysfs.h.
#define SENSOR_ATTR_2 |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_show, |
|
|
|
_store, |
|
|
|
_nr, |
|
|
|
_index |
|
) |
| |
Value:{ .dev_attr =
__ATTR(_name, _mode, _show, _store), \
.index = _index, \
.nr = _nr }
Definition at line 48 of file hwmon-sysfs.h.
#define SENSOR_DEVICE_ATTR |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_show, |
|
|
|
_store, |
|
|
|
_index |
|
) |
| |
#define SENSOR_DEVICE_ATTR_2 |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_show, |
|
|
|
_store, |
|
|
|
_nr, |
|
|
|
_index |
|
) |
| |