Lines Matching refs:devattr
124 static ssize_t show_name(struct device *dev, struct device_attribute *devattr,
129 return data->ops.show_name(dev, devattr, buf);
133 struct device_attribute *devattr, char *buf)
137 return data->ops.show_label(dev, devattr, buf);
141 struct device_attribute *devattr, char *buf)
145 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
156 static ssize_t set_min(struct device *dev, struct device_attribute *devattr,
161 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
176 static ssize_t set_max(struct device *dev, struct device_attribute *devattr,
181 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
197 struct device_attribute *devattr,
202 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
219 struct device_attribute *devattr, char *buf)
222 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
228 struct device_attribute *devattr, char *buf)
231 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
237 struct device_attribute *devattr, char *buf)
240 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
246 struct device_attribute *devattr, char *buf)
249 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
255 struct device_attribute *devattr, char *buf)
258 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);