Lines Matching refs:trip_hyst_attrs
515 tz->trip_hyst_attrs = kcalloc(tz->trips,
516 sizeof(*tz->trip_hyst_attrs),
518 if (!tz->trip_hyst_attrs) {
530 kfree(tz->trip_hyst_attrs);
566 snprintf(tz->trip_hyst_attrs[indx].name, THERMAL_NAME_LENGTH,
569 sysfs_attr_init(&tz->trip_hyst_attrs[indx].attr.attr);
570 tz->trip_hyst_attrs[indx].attr.attr.name =
571 tz->trip_hyst_attrs[indx].name;
572 tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO;
573 tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show;
575 tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR;
576 tz->trip_hyst_attrs[indx].attr.store =
580 &tz->trip_hyst_attrs[indx].attr.attr;
603 kfree(tz->trip_hyst_attrs);