From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83158C17440 for ; Tue, 12 Nov 2019 15:08:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 64B8121872 for ; Tue, 12 Nov 2019 15:08:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726991AbfKLPIs (ORCPT ); Tue, 12 Nov 2019 10:08:48 -0500 Received: from verein.lst.de ([213.95.11.211]:56295 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbfKLPIs (ORCPT ); Tue, 12 Nov 2019 10:08:48 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 9140D68BE1; Tue, 12 Nov 2019 16:08:45 +0100 (CET) Date: Tue, 12 Nov 2019 16:08:45 +0100 From: Christoph Hellwig To: Akinobu Mita Cc: Christoph Hellwig , linux-nvme@lists.infradead.org, linux-hwmon@vger.kernel.org, Keith Busch , Jens Axboe , Sagi Grimberg , Jean Delvare , Guenter Roeck Subject: Re: [PATCH] nvme: hwmon: provide temperature min and max values for each sensor Message-ID: <20191112150845.GA12550@lst.de> References: <1573395466-19526-1-git-send-email-akinobu.mita@gmail.com> <20191111165306.GA19814@lst.de> <20191112142127.GA11580@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org On Wed, Nov 13, 2019 at 12:00:22AM +0900, Akinobu Mita wrote: > 2019年11月12日(火) 23:21 Christoph Hellwig : > > > > 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) > > > #define KELVIN_TO_MILLICELSIUS(t) (((t) - 273) * 1000) > > > > Can you add them to linux/thermal.h that already has similar > > helpers? > > Should we add a new linux/temperature.h so that any other drivers or > subsystems (including thermal.h and hwmon.h) can use these macros? Fine with me.