Fix typo to millidegree Celsius. This aligns the comment with another comment later on the same function. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@xxxxxxxxxxx> --- Cc: "Niklas Söderlund" <niklas.soderlund@xxxxxxxxxxxx> Cc: "Rafael J. Wysocki" <rafael@xxxxxxxxxx> Cc: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> Cc: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Cc: Lukasz Luba <lukasz.luba@xxxxxxx> Cc: Magnus Damm <magnus.damm@xxxxxxxxx> Cc: Zhang Rui <rui.zhang@xxxxxxxxx> Cc: linux-pm@xxxxxxxxxxxxxxx Cc: linux-renesas-soc@xxxxxxxxxxxxxxx --- NOTE: Sent with -U25 for the extra context which spans both comments, the later one is at the end. --- drivers/thermal/renesas/rcar_gen3_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/renesas/rcar_gen3_thermal.c b/drivers/thermal/renesas/rcar_gen3_thermal.c index 45151a1733a94..af0bfe2555cb7 100644 --- a/drivers/thermal/renesas/rcar_gen3_thermal.c +++ b/drivers/thermal/renesas/rcar_gen3_thermal.c @@ -149,51 +149,51 @@ static inline void rcar_gen3_thermal_write(struct rcar_gen3_thermal_tsc *tsc, static void rcar_gen3_thermal_shared_coefs(struct rcar_gen3_thermal_priv *priv) { priv->tj_t = DIV_ROUND_CLOSEST((priv->ptat[1] - priv->ptat[2]) * priv->info->scale, priv->ptat[0] - priv->ptat[2]) + priv->info->adj_below; } static void rcar_gen3_thermal_tsc_coefs(struct rcar_gen3_thermal_priv *priv, struct rcar_gen3_thermal_tsc *tsc) { tsc->coef.below.a = priv->info->scale * (priv->ptat[2] - priv->ptat[1]); tsc->coef.above.a = priv->info->scale * (priv->ptat[0] - priv->ptat[1]); tsc->coef.below.b = (priv->ptat[2] - priv->ptat[0]) * (tsc->thcode[2] - tsc->thcode[1]); tsc->coef.above.b = (priv->ptat[0] - priv->ptat[2]) * (tsc->thcode[1] - tsc->thcode[0]); } static int rcar_gen3_thermal_get_temp(struct thermal_zone_device *tz, int *temp) { struct rcar_gen3_thermal_tsc *tsc = thermal_zone_device_priv(tz); struct rcar_gen3_thermal_priv *priv = tsc->priv; const struct equation_set_coef *coef; int adj, decicelsius, reg, thcode; - /* Read register and convert to mili Celsius */ + /* Read register and convert to millidegree Celsius */ reg = rcar_gen3_thermal_read(tsc, REG_GEN3_TEMP) & CTEMP_MASK; if (reg < tsc->thcode[1]) { adj = priv->info->adj_below; coef = &tsc->coef.below; thcode = tsc->thcode[2]; } else { adj = priv->info->adj_above; coef = &tsc->coef.above; thcode = tsc->thcode[0]; } /* * The dividend can't be grown as it might overflow, instead shorten the * divisor to convert to decidegree Celsius. If we convert after the * division precision is lost as we will scale up from whole degrees * Celsius. */ decicelsius = DIV_ROUND_CLOSEST(coef->a * (thcode - reg), coef->b / 10); /* Guaranteed operating range is -40C to 125C. */ /* Reporting is done in millidegree Celsius */ *temp = decicelsius * 100 + adj * 1000; -- 2.51.0