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=-3.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS 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 B7EF7C432C3 for ; Mon, 25 Nov 2019 14:30:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8C296207FD for ; Mon, 25 Nov 2019 14:30:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uZG2o2nY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728117AbfKYOaM (ORCPT ); Mon, 25 Nov 2019 09:30:12 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:35462 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727666AbfKYOaL (ORCPT ); Mon, 25 Nov 2019 09:30:11 -0500 Received: by mail-lf1-f65.google.com with SMTP id r15so8260115lff.2; Mon, 25 Nov 2019 06:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=LKjdexg+LkffG26VUSsNwV+tvqoIqAg7PNu5vMgemIs=; b=uZG2o2nYUojcIlyWe8PXU+6To4lKeOe9RblB9GWLBDHP0ROIwlChkyw0SKs6JtiR1f MD2l3RucqTGhVbOhYG1uBeE6ZOOh5kvcDBIIW2cMvMhIgT707IS2IweaA8uIIlMxwob4 DAmhCFqI+PYiMm5hgaQ7NH9ImizHriobDG60zsBWOlJpMTIMpk23p6obVPnKF8D9Jd0w Msd9NGRiv37kIRGnA1gDRLcvLDRdl8ucZ9K+rextcluWC7tAWJIYhcuQ2TuAL99qtP0E /KglPy0CcvOGFbyFrFpEgQV034Asp79um1Jn3oKBEstlAvZsFeBNDmVdfz7fqdwJAI4u 0TmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=LKjdexg+LkffG26VUSsNwV+tvqoIqAg7PNu5vMgemIs=; b=RoS16EbS50y/ne2DmgxUQVEN0ydRLE8a6cXHUyxZkBYcloZjPLBAuukm4x5iPZPtce d8J8Vi+QD63zRueElYp8h8R1VBBlxMnvBZx63awClZcb7rkm59s29C3Udg6vEyInlWgC HZ6G8eSjxf/SvWaCBupu2R9L1l1OL1Hk5Mzjwr637NBQCCogs2XXFnqX0IDpI5KV+X9/ spCt1pvERl03jNp/CpZP7FAVcn8sY2VNbJrtlUQSC+9xhsFoer7GhCe/nKdejYqQGrRJ BsvXn/A4dIgj0II0/i4OLcE6A2ByBaOir4f3f8odk/korGZUK/YvecnKzvVmLK979SDc cLXg== X-Gm-Message-State: APjAAAWDIuOS2JHT/+lM/EUteBcFkU5iXTQ1nl3psDHo5Zfu3mn2tDCY B12axCioLVDBu3duMqrm7WDOA4sKq44BokgP1TU= X-Google-Smtp-Source: APXvYqwNQ1gDP49zPYN8njc+j07Y/QD6fHpbzABV0vcBHhUVmveHtPabf233H4srJ1klzQkQ15yydwmm2QnzFdfBd1w= X-Received: by 2002:ac2:428d:: with SMTP id m13mr14985341lfh.64.1574692208081; Mon, 25 Nov 2019 06:30:08 -0800 (PST) MIME-Version: 1.0 References: <1574604530-9024-1-git-send-email-akinobu.mita@gmail.com> <1574604530-9024-2-git-send-email-akinobu.mita@gmail.com> In-Reply-To: From: Akinobu Mita Date: Mon, 25 Nov 2019 23:29:56 +0900 Message-ID: Subject: Re: [PATCH 1/8] add header file for kelvin to/from Celsius conversion helpers To: Andy Shevchenko Cc: Linux NVMe Mailinglist , linux-hwmon@vger.kernel.org, Linux PM , Linux Kernel Mailing List , Sujith Thomas , Darren Hart , Andy Shevchenko , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Amit Kucheria , Jean Delvare , Guenter Roeck , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2019=E5=B9=B411=E6=9C=8824=E6=97=A5(=E6=97=A5) 23:57 Andy Shevchenko : > > On Sun, Nov 24, 2019 at 4:09 PM Akinobu Mita wro= te: > > > > There are several helper macros to convert kelvin to/from Celsius in > > for thermal drivers. These are useful for any other > > drivers or subsystems, but it's odd to include just f= or > > the helpers. > > > > This adds a new that provides the equivalent inli= ne > > functions for any drivers or subsystems. It is intended to replace the > > helpers in . > > > > Cc: Sujith Thomas > > Cc: Darren Hart > > Cc: Andy Shevchenko > > Cc: Zhang Rui > > Cc: Eduardo Valentin > > Cc: Daniel Lezcano > > Cc: Amit Kucheria > > Cc: Jean Delvare > > Cc: Guenter Roeck > > Cc: Keith Busch > > Cc: Jens Axboe > > Cc: Christoph Hellwig > > Cc: Sagi Grimberg > > Signed-off-by: Akinobu Mita > > --- > > include/linux/temperature.h | 39 +++++++++++++++++++++++++++++++++++++= ++ > > > include/linux/thermal.h | 1 + > > > > --- a/include/linux/thermal.h > > +++ b/include/linux/thermal.h > > @@ -14,6 +14,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > I don't see any users of it. Why did you include? The rest of this patch series starts using it. I decided to include from because the existing provides the conversion helpers. However, not all of the thermal drivers require these conversion helpers, so we can change to include from each thermal driver instead of including it from . Which way do you prefer?