PD#SWPL-2130
Problem:
tsensor driver update thermal event when mode disabled
Solution:
fix tsensor disable mode issue
Verify:
A311D W400 pass
Change-Id: If9e3d3ea15732a0efbd8314003b27bc0bdf3e476
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
pr_err("No thermal zone device defined\n");
return;
}
+ /*
+ *if passive delay and polling delay all is zero
+ *mean thermal mode disabled, disable update envent
+ */
+ if (0 == (tz->passive_delay || tz->polling_delay))
+ return;
thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED);