Home
last modified time | relevance | path

Searched refs:dev_attr (Results 1 – 2 of 2) sorted by relevance

/include/linux/iio/
Dsysfs.h22 struct device_attribute dev_attr; member
29 container_of(_dev_attr, struct iio_dev_attr, dev_attr)
43 struct device_attribute dev_attr; member
47 container_of(_dev_attr, struct iio_const_attr, dev_attr)
52 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
56 { .dev_attr = __ATTR_RO(_name), \
60 { .dev_attr = __ATTR_WO(_name), \
64 { .dev_attr = __ATTR_RW(_name), \
90 .dev_attr = __ATTR(_name, S_IRUGO, iio_read_const_attr, NULL)}
95 .dev_attr = __ATTR(_name, S_IRUGO, iio_read_const_attr, NULL)}
/include/linux/
Dhwmon-sysfs.h13 struct device_attribute dev_attr; member
17 container_of(_dev_attr, struct sensor_device_attribute, dev_attr)
20 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
46 struct device_attribute dev_attr; member
51 container_of(_dev_attr, struct sensor_device_attribute_2, dev_attr)
54 { .dev_attr = __ATTR(_name, _mode, _show, _store), \