summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/da9062-thermal.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2020-12-16 23:03:37 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-01-19 22:23:49 +0100
commitb39d2dd5b5ed08d15711aefd5afd72bd87387c64 (patch)
treeb852ce487fa56a9facd7584b57a853cfbd46f480 /drivers/thermal/da9062-thermal.c
parent39a38808d082fc0fbf45cfefda17252ed8c6b31f (diff)
downloadlinux-stable-b39d2dd5b5ed08d15711aefd5afd72bd87387c64.tar.gz
linux-stable-b39d2dd5b5ed08d15711aefd5afd72bd87387c64.tar.bz2
linux-stable-b39d2dd5b5ed08d15711aefd5afd72bd87387c64.zip
thermal/core: Remove ms based delay fields
The code does no longer use the ms unit based fields to set the delays as they are replaced by the jiffies. Remove them and replace their user to use the jiffies version instead. Cc: Thara Gopinath <thara.gopinath@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Reviewed-by: Peter Kästle <peter@piie.net> Acked-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20201216220337.839878-3-daniel.lezcano@linaro.org
Diffstat (limited to 'drivers/thermal/da9062-thermal.c')
-rw-r--r--drivers/thermal/da9062-thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/da9062-thermal.c b/drivers/thermal/da9062-thermal.c
index 4d74994f160a..180edec34e07 100644
--- a/drivers/thermal/da9062-thermal.c
+++ b/drivers/thermal/da9062-thermal.c
@@ -95,7 +95,7 @@ static void da9062_thermal_poll_on(struct work_struct *work)
thermal_zone_device_update(thermal->zone,
THERMAL_EVENT_UNSPECIFIED);
- delay = msecs_to_jiffies(thermal->zone->passive_delay);
+ delay = thermal->zone->passive_delay_jiffies;
queue_delayed_work(system_freezable_wq, &thermal->work, delay);
return;
}
@@ -245,7 +245,7 @@ static int da9062_thermal_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev,
"TJUNC temperature polling period set at %d ms\n",
- thermal->zone->passive_delay);
+ jiffies_to_msecs(thermal->zone->passive_delay_jiffies));
ret = platform_get_irq_byname(pdev, "THERMAL");
if (ret < 0) {