Home
last modified time | relevance | path

Searched refs:weight_attr (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/thermal/
Dthermal_core.c823 sysfs_attr_init(&dev->weight_attr.attr); in thermal_bind_cdev_to_trip()
824 dev->weight_attr.attr.name = dev->weight_attr_name; in thermal_bind_cdev_to_trip()
825 dev->weight_attr.attr.mode = S_IWUSR | S_IRUGO; in thermal_bind_cdev_to_trip()
826 dev->weight_attr.show = weight_show; in thermal_bind_cdev_to_trip()
827 dev->weight_attr.store = weight_store; in thermal_bind_cdev_to_trip()
828 result = device_create_file(&tz->device, &dev->weight_attr); in thermal_bind_cdev_to_trip()
850 device_remove_file(&tz->device, &dev->weight_attr); in thermal_bind_cdev_to_trip()
895 device_remove_file(&tz->device, &pos->weight_attr); in thermal_unbind_cdev_from_trip()
Dthermal_core.h228 struct device_attribute weight_attr; member
Dthermal_sysfs.c878 instance = container_of(attr, struct thermal_instance, weight_attr); in weight_show()
894 instance = container_of(attr, struct thermal_instance, weight_attr); in weight_store()