提交 c499703e 编写于 作者: K Kuninori Morimoto 提交者: Zhang Rui

thermal: rcar: fixup the unit of temperature

The unit of temperature is Milli-Celsius.
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NZhang Rui <rui.zhang@intel.com>
上级 4ba115b1
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册