Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c499703e authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Zhang Rui
Browse files

thermal: rcar: fixup the unit of temperature



The unit of temperature is Milli-Celsius.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 4ba115b1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@ struct rcar_thermal_priv {
	u32 comp;
};

#define MCELSIUS(temp)			((temp) * 1000)

/*
 *		basic functions
 */
@@ -169,7 +171,7 @@ static int rcar_thermal_get_temp(struct thermal_zone_device *zone,
		}
	}

	*temp = tmp;
	*temp = MCELSIUS(tmp);
	return 0;
}