Home
last modified time | relevance | path

Searched refs:trip_temp_attrs (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/thermal/
Dthermal_sysfs.c507 tz->trip_temp_attrs = kcalloc(tz->trips, sizeof(*tz->trip_temp_attrs), in create_trip_attrs()
509 if (!tz->trip_temp_attrs) { in create_trip_attrs()
520 kfree(tz->trip_temp_attrs); in create_trip_attrs()
528 kfree(tz->trip_temp_attrs); in create_trip_attrs()
547 snprintf(tz->trip_temp_attrs[indx].name, THERMAL_NAME_LENGTH, in create_trip_attrs()
550 sysfs_attr_init(&tz->trip_temp_attrs[indx].attr.attr); in create_trip_attrs()
551 tz->trip_temp_attrs[indx].attr.attr.name = in create_trip_attrs()
552 tz->trip_temp_attrs[indx].name; in create_trip_attrs()
553 tz->trip_temp_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
554 tz->trip_temp_attrs[indx].attr.show = trip_point_temp_show; in create_trip_attrs()
[all …]
/Linux-v5.10/include/linux/
Dthermal.h155 struct thermal_attr *trip_temp_attrs; member