Lines Matching refs:trip_hyst_attrs
455 tz->trip_hyst_attrs = kcalloc(tz->num_trips,
456 sizeof(*tz->trip_hyst_attrs),
458 if (!tz->trip_hyst_attrs) {
468 kfree(tz->trip_hyst_attrs);
501 snprintf(tz->trip_hyst_attrs[indx].name, THERMAL_NAME_LENGTH,
504 sysfs_attr_init(&tz->trip_hyst_attrs[indx].attr.attr);
505 tz->trip_hyst_attrs[indx].attr.attr.name =
506 tz->trip_hyst_attrs[indx].name;
507 tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO;
508 tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show;
510 tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR;
511 tz->trip_hyst_attrs[indx].attr.store =
515 &tz->trip_hyst_attrs[indx].attr.attr;
537 kfree(tz->trip_hyst_attrs);