diff options
| author | Fabio Estevam <[email protected]> | 2023-08-23 14:59:10 -0300 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2023-09-04 17:26:44 +0200 |
| commit | f4898e4b0ede5929cc1706d0da498d63375b1129 (patch) | |
| tree | 00c2fb39367f04adde7b1db30cc721907224e2cb /drivers | |
| parent | 966480fe43ba929373b7449fa5b918d63cca88b3 (diff) | |
thermal: imx_tmu: Fix the temperature unit
The temperature unit is millidegree Celsius, so divide by 1000 to correctly
print the temperature values in Celsius.
While at it, also change a typo: "has beyond" to "is beyond".
Signed-off-by: Fabio Estevam <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/thermal/imx_tmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c index d2ea084d2d2..b877ee36878 100644 --- a/drivers/thermal/imx_tmu.c +++ b/drivers/thermal/imx_tmu.c @@ -238,8 +238,8 @@ int imx_tmu_get_temp(struct udevice *dev, int *temp) return ret; while (cpu_tmp >= pdata->alert) { - dev_crit(dev, "CPU Temperature (%dC) has beyond alert (%dC), close to critical (%dC) waiting...\n", - cpu_tmp, pdata->alert, pdata->critical); + dev_crit(dev, "CPU Temperature (%dC) is beyond alert (%dC), close to critical (%dC) waiting...\n", + cpu_tmp / 1000, pdata->alert / 1000, pdata->critical / 1000); mdelay(pdata->polling_delay); ret = read_temperature(dev, &cpu_tmp); if (ret) |
