Home
last modified time | relevance | path

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

/linux-6.15/drivers/thermal/
H A Dthermal_core.c882 sysfs_attr_init(&dev->weight_attr.attr); in thermal_bind_cdev_to_trip()
883 dev->weight_attr.attr.name = dev->weight_attr_name; in thermal_bind_cdev_to_trip()
884 dev->weight_attr.attr.mode = S_IWUSR | S_IRUGO; in thermal_bind_cdev_to_trip()
885 dev->weight_attr.show = weight_show; in thermal_bind_cdev_to_trip()
886 dev->weight_attr.store = weight_store; in thermal_bind_cdev_to_trip()
887 result = device_create_file(&tz->device, &dev->weight_attr); in thermal_bind_cdev_to_trip()
900 device_remove_file(&tz->device, &dev->weight_attr); in thermal_bind_cdev_to_trip()
949 device_remove_file(&tz->device, &pos->weight_attr); in thermal_unbind_cdev_from_trip()
H A Dthermal_core.h245 struct device_attribute weight_attr; member
H A Dthermal_sysfs.c854 instance = container_of(attr, struct thermal_instance, weight_attr); in weight_show()
870 instance = container_of(attr, struct thermal_instance, weight_attr); in weight_store()