Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp789272ybl; Wed, 11 Dec 2019 07:32:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyOv4juVRkiHB/NQhsPk2/xtdJXsjH8WgB/0SNX1il02ubdjI3/kYdVgsERey7+O2Wzw/k9 X-Received: by 2002:a9d:1d07:: with SMTP id m7mr2735806otm.261.1576078350750; Wed, 11 Dec 2019 07:32:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576078350; cv=none; d=google.com; s=arc-20160816; b=G2v401OE3knZj5pk27ua7nPQv4jTRWpTJ1BYS5aKPt+u2KLJrkcsipJ6b/rPxEKNxz gBXRovAVZTOY16ATQIp33xS64bX79nAIuRHHLKppUmd6kMAVxFYcBDav8o7MrYMVIqHi tqCgnWIPqxwC1Cgj0qbaKIElkOEvAkSb7RisXhIIDnBWfb5IWD0kasMi6EXKQWY00d1F LwzNHKOK9HmL0etZ+4Hom9k4RgXa09KQussM+aPJvsepxcSdj+3hz7R35kdlelqXx+Oc 1+bXy6byFi0bUO2s9Sh49t0v/P+YBrNogBiq0QJRtuAmTRqxp/Swm2gmNE73BzzhMBOt XkZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pfDhDYFuoXDrqHRE8i/08ZQEyfFGj50C9cMmD8Jy2MA=; b=foPZHriIwSFWupl9eu+zJ62Qgz5CY86Lh/IMYXL/pq3RE5/nsoYpUERNjMMGfPjObe rvktSifSUHHGEBC2aqWD7u4ZP8FCkbJebW/uguy/7RcWhjSf5qoSrcAVaieKrzUjV2tA QHFS4yvJI4ioE9UCbBultUvjxbkJhAks5TVWCqMLa7sb1DKoAQDwdx97Wd8j2UKU4K+9 tlLKz5MlX/zwQL1XafOOVwhFoq6qtNMFBFzaU8DkbYw39D7evV5Sxj1Z/dMGlg5XUKLu Z3y1K44FycrDFClZ3U2W+2FSGY81r96qPziOf8YR7agtB+RdQ0GiDZ/LDf8+XTfis86+ LxEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j5C0uyFc; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 n85si1400544oig.191.2019.12.11.07.32.05; Wed, 11 Dec 2019 07:32:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=j5C0uyFc; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 S2387995AbfLKPay (ORCPT + 99 others); Wed, 11 Dec 2019 10:30:54 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:46182 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387867AbfLKP3X (ORCPT ); Wed, 11 Dec 2019 10:29:23 -0500 Received: by mail-pj1-f67.google.com with SMTP id z21so9041500pjq.13; Wed, 11 Dec 2019 07:29:22 -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; bh=pfDhDYFuoXDrqHRE8i/08ZQEyfFGj50C9cMmD8Jy2MA=; b=j5C0uyFcwXKjxMT2bhJ14CbB+fZCEQxShkK6p3Cf93qQ6BpSTKh005B5VD2g3OiyqF /wNRFMf+eDpSe4TXNqE6yRjbz6RybfTWfb6JvF2sgW3j1ebFqzHfH+knhZW5LWMcLU9Q PPkMZlifZ3WANqTGfezf8poByuNPftyfj2T8ipV3B9YeSB8ICKW5MsA6kddHfyed3zGU vic5lX9Flai49PViVVxoFnEQJ1pk/ccakyFpoYFqPpU1m9xHZDAyiQ7nU9kNfJZthfG6 7ElzzegodjoKVuaP+P5wut6UEuDXichyFzp4GyPgvDzsqKx4ZybnxVzEt/Nh+yrpsJgq kRqw== 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; bh=pfDhDYFuoXDrqHRE8i/08ZQEyfFGj50C9cMmD8Jy2MA=; b=oAp9Da0cQAxIH33xtPRmHHU7hXcNi2uBWg1Og5bnOhBOKc+hnHLVtlcYxFnwXbX6zF GEAaDkOqYoCsnjDS7bBWqirQhwVzj3p5jhoz5pUi3vNFcmz6OmMvfPehP1gwtNkj/FpT 3z3ypD6JonJ5HP91wt3V+mi5Gijz7NOU3juy/RKKTpDlY2pn7/Po+PHgd0kGvbEAGgXe mIA42Asn90P5z94ZdBFE/amZfAWQw9qJf/c+w5LheJuK4rW2BZ+nyJjdkdZV1XmA+VBP Wl6qpuDs65zuO7ZGQ45BENZByisPuxDaop07kTF9tryPX0BH4JedGPDxS5qhAqjTERnc FSBQ== X-Gm-Message-State: APjAAAWG8fEtXNby/te4Lw1NUEZdGAC01iU/5E+FSAUQshH+DOm7Ksp/ 6G6y8LdeLPeY7Putejvd+94YB7/nGUFqXoZE64E= X-Received: by 2002:a17:90a:b10b:: with SMTP id z11mr4272497pjq.132.1576078162498; Wed, 11 Dec 2019 07:29:22 -0800 (PST) MIME-Version: 1.0 References: <1576075099-3441-1-git-send-email-akinobu.mita@gmail.com> <1576075099-3441-3-git-send-email-akinobu.mita@gmail.com> In-Reply-To: <1576075099-3441-3-git-send-email-akinobu.mita@gmail.com> From: Andy Shevchenko Date: Wed, 11 Dec 2019 17:29:12 +0200 Message-ID: Subject: Re: [PATCH v3 02/12] ACPI: thermal: switch to use helpers To: Akinobu Mita Cc: Linux NVMe Mailinglist , linux-hwmon@vger.kernel.org, Linux PM , "open list:TI WILINK WIRELES..." , linux-iio , Linux Kernel Mailing List , Sujith Thomas , Darren Hart , Andy Shevchenko , Zhang Rui , Daniel Lezcano , Amit Kucheria , Jean Delvare , Guenter Roeck , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, Dec 11, 2019 at 4:39 PM Akinobu Mita wrote: > > This switches the ACPI thermal zone driver to use celsius_to_deci_kelvin(), > deci_kelvin_to_celsius(), and deci_kelvin_to_millicelsius_with_offset() in > instead of helpers in . > > This is preparation for centralizing the kelvin to/from Celsius conversion > helpers in . > #include > #include > #include > +#include Can we try to keep *some* order, i.e. put this after acpi.h below? > #include > #include > #include > } else if (crt > 0) { > - unsigned long crt_k = CELSIUS_TO_DECI_KELVIN(crt); > + unsigned long crt_k = > + celsius_to_deci_kelvin(crt); It used to be one line, why do two? > pr_info(PREFIX "%s [%s] (%ld C)\n", acpi_device_name(device), > - acpi_device_bid(device), DECI_KELVIN_TO_CELSIUS(tz->temperature)); > + acpi_device_bid(device), > + deci_kelvin_to_celsius(tz->temperature)); Ditto. -- With Best Regards, Andy Shevchenko