Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b7ddb84 authored by Zhang Rui's avatar Zhang Rui
Browse files

Thermal: Remove tc1/tc2 in generic thermal layer.



Remove tc1/tc2 in generic thermal layer.
.get_trend() callback starts to take effect from this patch.

Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Reviewed-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Reviewed-by: default avatarValentin, Eduardo <eduardo.valentin@ti.com>
parent 601f3d42
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -897,15 +897,12 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz)
		tz->thermal_zone =
			thermal_zone_device_register("acpitz", trips, 0, tz,
						     &acpi_thermal_zone_ops,
						     tz->trips.passive.tc1,
						     tz->trips.passive.tc2,
						     tz->trips.passive.tsp*100,
						     tz->polling_frequency*100);
	else
		tz->thermal_zone =
			thermal_zone_device_register("acpitz", trips, 0, tz,
						     &acpi_thermal_zone_ops,
						     0, 0, 0,
						     &acpi_thermal_zone_ops, 0,
						     tz->polling_frequency*100);
	if (IS_ERR(tz->thermal_zone))
		return -ENODEV;
+1 −1
Original line number Diff line number Diff line
@@ -662,7 +662,7 @@ static int acerhdf_register_thermal(void)
		return -EINVAL;

	thz_dev = thermal_zone_device_register("acerhdf", 1, 0, NULL,
					      &acerhdf_dev_ops, 0, 0, 0,
					      &acerhdf_dev_ops, 0,
					      (kernelmode) ? interval*1000 : 0);
	if (IS_ERR(thz_dev))
		return -EINVAL;
+1 −1
Original line number Diff line number Diff line
@@ -502,7 +502,7 @@ static int mid_thermal_probe(struct platform_device *pdev)
			goto err;
		}
		pinfo->tzd[i] = thermal_zone_device_register(name[i],
				0, 0, td_info, &tzd_ops, 0, 0, 0, 0);
				0, 0, td_info, &tzd_ops, 0, 0);
		if (IS_ERR(pinfo->tzd[i])) {
			kfree(td_info);
			ret = PTR_ERR(pinfo->tzd[i]);
+1 −1
Original line number Diff line number Diff line
@@ -201,7 +201,7 @@ static int psy_register_thermal(struct power_supply *psy)
	for (i = 0; i < psy->num_properties; i++) {
		if (psy->properties[i] == POWER_SUPPLY_PROP_TEMP) {
			psy->tzd = thermal_zone_device_register(psy->name, 0, 0,
					psy, &psy_tzd_ops, 0, 0, 0, 0);
					psy, &psy_tzd_ops, 0, 0);
			if (IS_ERR(psy->tzd))
				return PTR_ERR(psy->tzd);
			break;
+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ int omap_thermal_expose_sensor(struct omap_bandgap *bg_ptr, int id,
	/* Create thermal zone */
	data->omap_thermal = thermal_zone_device_register(domain,
				OMAP_TRIP_NUMBER, 0, data, &omap_thermal_ops,
				0, FAST_TEMP_MONITORING_RATE, 0, 0);
				0, FAST_TEMP_MONITORING_RATE);
	if (IS_ERR_OR_NULL(data->omap_thermal)) {
		dev_err(bg_ptr->dev, "thermal zone device is NULL\n");
		return PTR_ERR(data->omap_thermal);
Loading