thermal: rcar: fixup the unit of temperature
The unit of temperature is Milli-Celsius. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
Родитель
4ba115b1e1
Коммит
c499703e64
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче