Lines Matching defs:trip
23 static int of_find_trip_id(struct device_node *np, struct device_node *trip)
36 * Find the trip id point associated with the cooling device map
40 if (t == trip) {
56 * into the device tree binding of 'trip', property type.
68 * @type: Pointer to resulting trip type
70 * The function gets trip type string from property 'type',
95 struct thermal_trip *trip)
105 trip->temperature = prop;
112 trip->hysteresis = prop;
114 ret = thermal_of_get_trip_type(np, &trip->type);
116 pr_err("wrong trip type property\n");
126 struct device_node *trips, *trip;
137 pr_err("No trip point defined\n");
151 for_each_child_of_node(trips, trip) {
152 ret = thermal_of_populate_trip(trip, &tt[count++]);
361 tr_np = of_parse_phandle(map_np, "trip", 0);
496 pr_err("Failed to find trip points for %pOFn id=%d\n", sensor, id);