Lines Matching refs:attr

45 	struct device_attribute attr;  member
62 name_show(struct device *dev, struct device_attribute *attr, char *buf) in name_show() argument
70 temp_input_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_input_show() argument
75 = container_of(attr, struct thermal_hwmon_attr, attr); in temp_input_show()
90 temp_crit_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_crit_show() argument
93 = container_of(attr, struct thermal_hwmon_attr, attr); in temp_crit_show()
190 temp->temp_input.attr.attr.name = temp->temp_input.name; in thermal_add_hwmon_sysfs()
191 temp->temp_input.attr.attr.mode = 0444; in thermal_add_hwmon_sysfs()
192 temp->temp_input.attr.show = temp_input_show; in thermal_add_hwmon_sysfs()
193 sysfs_attr_init(&temp->temp_input.attr.attr); in thermal_add_hwmon_sysfs()
194 result = device_create_file(hwmon->device, &temp->temp_input.attr); in thermal_add_hwmon_sysfs()
202 temp->temp_crit.attr.attr.name = temp->temp_crit.name; in thermal_add_hwmon_sysfs()
203 temp->temp_crit.attr.attr.mode = 0444; in thermal_add_hwmon_sysfs()
204 temp->temp_crit.attr.show = temp_crit_show; in thermal_add_hwmon_sysfs()
205 sysfs_attr_init(&temp->temp_crit.attr.attr); in thermal_add_hwmon_sysfs()
207 &temp->temp_crit.attr); in thermal_add_hwmon_sysfs()
221 device_remove_file(hwmon->device, &temp->temp_input.attr); in thermal_add_hwmon_sysfs()
255 device_remove_file(hwmon->device, &temp->temp_input.attr); in thermal_remove_hwmon_sysfs()
257 device_remove_file(hwmon->device, &temp->temp_crit.attr); in thermal_remove_hwmon_sysfs()