hisi_thermal.c (e82a82c19f4272ea5437cc76e5711b98e2ee6223) | hisi_thermal.c (0e70f466fb910ae54c4c71243b99385129e93feb) |
---|---|
1/* 2 * Hisilicon thermal sensor driver 3 * 4 * Copyright (c) 2014-2015 Hisilicon Limited. 5 * Copyright (c) 2014-2015 Linaro Limited. 6 * 7 * Xinwei Kong <kong.kongxinwei@hisilicon.com> 8 * Leo Yan <leo.yan@linaro.org> --- 223 unchanged lines hidden (view full) --- 232 dev_crit(&data->pdev->dev, "THERMAL ALARM: T > %d\n", 233 sensor->thres_temp / 1000); 234 mutex_unlock(&data->thermal_lock); 235 236 for (i = 0; i < HISI_MAX_SENSORS; i++) { 237 if (!data->sensors[i].tzd) 238 continue; 239 | 1/* 2 * Hisilicon thermal sensor driver 3 * 4 * Copyright (c) 2014-2015 Hisilicon Limited. 5 * Copyright (c) 2014-2015 Linaro Limited. 6 * 7 * Xinwei Kong <kong.kongxinwei@hisilicon.com> 8 * Leo Yan <leo.yan@linaro.org> --- 223 unchanged lines hidden (view full) --- 232 dev_crit(&data->pdev->dev, "THERMAL ALARM: T > %d\n", 233 sensor->thres_temp / 1000); 234 mutex_unlock(&data->thermal_lock); 235 236 for (i = 0; i < HISI_MAX_SENSORS; i++) { 237 if (!data->sensors[i].tzd) 238 continue; 239 |
240 thermal_zone_device_update(data->sensors[i].tzd); | 240 thermal_zone_device_update(data->sensors[i].tzd, 241 THERMAL_EVENT_UNSPECIFIED); |
241 } 242 243 return IRQ_HANDLED; 244} 245 246static int hisi_thermal_register_sensor(struct platform_device *pdev, 247 struct hisi_thermal_data *data, 248 struct hisi_thermal_sensor *sensor, --- 179 unchanged lines hidden --- | 242 } 243 244 return IRQ_HANDLED; 245} 246 247static int hisi_thermal_register_sensor(struct platform_device *pdev, 248 struct hisi_thermal_data *data, 249 struct hisi_thermal_sensor *sensor, --- 179 unchanged lines hidden --- |