Lines Matching refs:trip_hyst_attrs
444 tz->trip_hyst_attrs = kcalloc(tz->num_trips, in create_trip_attrs()
445 sizeof(*tz->trip_hyst_attrs), in create_trip_attrs()
447 if (!tz->trip_hyst_attrs) { in create_trip_attrs()
459 kfree(tz->trip_hyst_attrs); in create_trip_attrs()
495 snprintf(tz->trip_hyst_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
498 sysfs_attr_init(&tz->trip_hyst_attrs[indx].attr.attr); in create_trip_attrs()
499 tz->trip_hyst_attrs[indx].attr.attr.name = in create_trip_attrs()
500 tz->trip_hyst_attrs[indx].name; in create_trip_attrs()
501 tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
502 tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show; in create_trip_attrs()
504 tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
505 tz->trip_hyst_attrs[indx].attr.store = in create_trip_attrs()
509 &tz->trip_hyst_attrs[indx].attr.attr; in create_trip_attrs()
532 kfree(tz->trip_hyst_attrs); in destroy_trip_attrs()