Lines Matching refs:trip_temp_attrs
447 tz->trip_temp_attrs = kcalloc(tz->num_trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs()
449 if (!tz->trip_temp_attrs) { in create_trip_attrs()
459 kfree(tz->trip_temp_attrs); in create_trip_attrs()
466 kfree(tz->trip_temp_attrs); in create_trip_attrs()
484 snprintf(tz->trip_temp_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
487 sysfs_attr_init(&tz->trip_temp_attrs[indx].attr.attr); in create_trip_attrs()
488 tz->trip_temp_attrs[indx].attr.attr.name = in create_trip_attrs()
489 tz->trip_temp_attrs[indx].name; in create_trip_attrs()
490 tz->trip_temp_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
491 tz->trip_temp_attrs[indx].attr.show = trip_point_temp_show; in create_trip_attrs()
494 tz->trip_temp_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
495 tz->trip_temp_attrs[indx].attr.store = in create_trip_attrs()
498 attrs[indx + tz->num_trips] = &tz->trip_temp_attrs[indx].attr.attr; in create_trip_attrs()
535 kfree(tz->trip_temp_attrs); in destroy_trip_attrs()