Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3208943ybc; Mon, 25 Nov 2019 10:40:05 -0800 (PST) X-Google-Smtp-Source: APXvYqx3ICfYltd0D/c0KwYGjyMixwkmng8N8Z5VXoze/FMzkfRq75JJWfFrfaMSzWQBWTYKrp+D X-Received: by 2002:a50:fc8e:: with SMTP id f14mr20238257edq.83.1574707204981; Mon, 25 Nov 2019 10:40:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574707204; cv=none; d=google.com; s=arc-20160816; b=Ie/6zq/kSWZ2B6b2zM+6GHZbmW3lCspyqmGhY5nX/bSouQgE2hAXeSbMOzgtpNm5lP v98HChc3lGYmAVBBaR2ZxG7c1lJbvqLLyIfh/3J2f+hSUmOHkemXdtZHUSN4VjdlWikB KZL1n+N+VZjLqAq+Gu/qcXEJ9WeMOyNeRYFdZxQrIR9RS4TPRXu7YHzBrVzdIc/G0MzG dxxMZ/2WnWnkQtR263NzuvhWdzcFnAPFW/Pv8o6x6VtCKiscKbM4UtFk+nOQdEolyuY7 b4RhBDnupSu+xcxcbFbl5n3nJR/lAioRvY39APrZV7TsULuYMKL4SJfrofj6gc/UKgF6 A04A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=LKjdexg+LkffG26VUSsNwV+tvqoIqAg7PNu5vMgemIs=; b=xt02rCVJyD+rcSMdIaV6RJw94qiNinAGnLauPW5GEpgpdyYZIt/124YWm5hrVkmIU2 anhHUGPORX18Tdv7nle1ANi4GG3NRAQ9PTi/V5oS63beVevgg3uLKek0Wko2lhDc5dU1 wESK0Qo47BVN/4nuHO7rMqOsQDtB/LJ2B+oYSxeIjU+8VGrn/VcLI0HNBMbd2EjLq+MQ M8iCtcBmNvAjQcepX1ppAa4IJVuCsvL3t0yQCDovBApUIBhaJ4IWUK+r4wxWYwQSQFYL Mnvi6CywCACzWteOdrqjBbsQbqUGBSmxc6kYBELNg2UK69rEYFAI2wncS8y8f/jqi9A0 SG9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uZG2o2nY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si5368066edy.215.2019.11.25.10.39.41; Mon, 25 Nov 2019 10:40:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uZG2o2nY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728113AbfKYOaM (ORCPT + 99 others); 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-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?