summaryrefslogtreecommitdiffstats
path: root/drivers/staging/omap-thermal
diff options
context:
space:
mode:
authorEduardo Valentin2012-09-11 18:06:54 +0200
committerGreg Kroah-Hartman2012-09-11 21:14:16 +0200
commit765a1939a364d121e70b452c3df34c2af446f47a (patch)
tree6e64b4b36668eed5de2d967c91d41802045b6a1b /drivers/staging/omap-thermal
parentstaging: omap-thermal: remove checkpatch.pl warnings on data files (diff)
downloadkernel-qcow2-linux-765a1939a364d121e70b452c3df34c2af446f47a.tar.gz
kernel-qcow2-linux-765a1939a364d121e70b452c3df34c2af446f47a.tar.xz
kernel-qcow2-linux-765a1939a364d121e70b452c3df34c2af446f47a.zip
staging: omap-thermal: fix polling period settings
While registering the omap thermal zones we need to properly specify TC1 and TC2, as long as the proper passive polling period and monitor period. This patch fixes the parameters passed while registering the thermal zone. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/omap-thermal')
-rw-r--r--drivers/staging/omap-thermal/omap-thermal-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/omap-thermal/omap-thermal-common.c b/drivers/staging/omap-thermal/omap-thermal-common.c
index 0675a5e2f7c8..d15642487008 100644
--- a/drivers/staging/omap-thermal/omap-thermal-common.c
+++ b/drivers/staging/omap-thermal/omap-thermal-common.c
@@ -246,7 +246,9 @@ 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);
+ 1, 2, /*TODO: remove this when FW allows */
+ FAST_TEMP_MONITORING_RATE,
+ 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);