On 11/13/19 4:58 AM, Akinobu Mita wrote:
2019年11月13日(水) 1:38 Guenter Roeck <linux@xxxxxxxxxxxx>:
On Wed, Nov 13, 2019 at 12:00:22AM +0900, Akinobu Mita wrote:
2019年11月12日(火) 23:21 Christoph Hellwig <hch@xxxxxx>:
On Tue, Nov 12, 2019 at 11:19:46PM +0900, Akinobu Mita wrote:
OK. I'll add two macros.
#define MILLICELSIUS_TO_KELVIN(t) ((t) / 1000 + 273)
DIV_ROUND_CLOSEST() ?
How about these definitions?
#define MILLICELSIUS_TO_KELVIN(t) DIV_ROUND_CLOSEST((t) + 273150, 1000)
#define KELVIN_TO_MILLICELSIUS(t) ((t) * 1000L - 273150)
LGTM
Guenter