Searched refs:weight_attr (Results 1 – 2 of 2) sorted by relevance
51 struct device_attribute weight_attr; member
1212 instance = container_of(attr, struct thermal_instance, weight_attr); in thermal_cooling_device_weight_show()1229 instance = container_of(attr, struct thermal_instance, weight_attr); in thermal_cooling_device_weight_store()1329 sysfs_attr_init(&dev->weight_attr.attr); in thermal_zone_bind_cooling_device()1330 dev->weight_attr.attr.name = dev->weight_attr_name; in thermal_zone_bind_cooling_device()1331 dev->weight_attr.attr.mode = S_IWUSR | S_IRUGO; in thermal_zone_bind_cooling_device()1332 dev->weight_attr.show = thermal_cooling_device_weight_show; in thermal_zone_bind_cooling_device()1333 dev->weight_attr.store = thermal_cooling_device_weight_store; in thermal_zone_bind_cooling_device()1334 result = device_create_file(&tz->device, &dev->weight_attr); in thermal_zone_bind_cooling_device()1356 device_remove_file(&tz->device, &dev->weight_attr); in thermal_zone_bind_cooling_device()1406 device_remove_file(&tz->device, &pos->weight_attr); in thermal_zone_unbind_cooling_device()