Lines Matching refs:th
64 struct db8500_thermal_zone *th = data;
71 *temp = th->interpolated_temp;
79 struct db8500_thermal_zone *th = data;
81 *trend = th->trend;
91 static void db8500_thermal_update_config(struct db8500_thermal_zone *th,
99 th->cur_index = idx;
100 th->interpolated_temp = (next_low + next_high)/2;
101 th->trend = trend;
113 struct db8500_thermal_zone *th = irq_data;
114 unsigned int idx = th->cur_index;
130 db8500_thermal_update_config(th, idx, THERMAL_TREND_DROPPING,
132 dev_dbg(&th->tz->device,
135 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED);
142 struct db8500_thermal_zone *th = irq_data;
143 unsigned int idx = th->cur_index;
152 db8500_thermal_update_config(th, idx, THERMAL_TREND_RAISING,
155 dev_dbg(&th->tz->device,
159 th->interpolated_temp = db8500_thermal_points[idx] + 1;
161 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED);
168 struct db8500_thermal_zone *th = NULL;
172 th = devm_kzalloc(dev, sizeof(*th), GFP_KERNEL);
173 if (!th)
184 "dbx500_temp_low", th);
198 "dbx500_temp_high", th);
205 th->tz = devm_thermal_zone_of_sensor_register(dev, 0, th, &thdev_ops);
206 if (IS_ERR(th->tz)) {
208 return PTR_ERR(th->tz);
213 db8500_thermal_update_config(th, 0, THERMAL_TREND_STABLE,
217 platform_set_drvdata(pdev, th);
232 struct db8500_thermal_zone *th = platform_get_drvdata(pdev);
235 db8500_thermal_update_config(th, 0, THERMAL_TREND_STABLE,