Searched refs:weight_attr (Results 1 – 2 of 2) sorted by relevance
51 struct device_attribute weight_attr; member
1276 instance = container_of(attr, struct thermal_instance, weight_attr); in thermal_cooling_device_weight_show()1293 instance = container_of(attr, struct thermal_instance, weight_attr); in thermal_cooling_device_weight_store()1393 sysfs_attr_init(&dev->weight_attr.attr); in thermal_zone_bind_cooling_device()1394 dev->weight_attr.attr.name = dev->weight_attr_name; in thermal_zone_bind_cooling_device()1395 dev->weight_attr.attr.mode = S_IWUSR | S_IRUGO; in thermal_zone_bind_cooling_device()1396 dev->weight_attr.show = thermal_cooling_device_weight_show; in thermal_zone_bind_cooling_device()1397 dev->weight_attr.store = thermal_cooling_device_weight_store; in thermal_zone_bind_cooling_device()1398 result = device_create_file(&tz->device, &dev->weight_attr); in thermal_zone_bind_cooling_device()1420 device_remove_file(&tz->device, &dev->weight_attr); in thermal_zone_bind_cooling_device()1470 device_remove_file(&tz->device, &pos->weight_attr); in thermal_zone_unbind_cooling_device()