From patchwork Tue Sep 8 11:20:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 53261 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id E3C3822B11 for ; Tue, 8 Sep 2015 11:20:00 +0000 (UTC) Received: by wisv5 with SMTP id v5sf35547545wis.0 for ; Tue, 08 Sep 2015 04:20:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=sJFjkyEShScCmcdnrYrkxqXqv3OhoWfvhMFugXcqBpk=; b=fPfd5RqwK6QRhjlmBrNETZ15yY7nBNAY/NwNx0g33NLzPbxp/rTENBM8NnkYGxHiXh HgjcIbfJ7mlJXP6YUlKTxb8r0dmUdjsErG4xYk3QyGVDberX8w6BzlK35Gt8msjw/Cuy SxWEvmhX72LyzJc513qkwFc+1uKNiXs0Tql8y1avVLqP+xMhK9JwOuLRRXjvS9XOHbZF vFrEdCV6B0OMrk4yEZA0mHXFz4SRNAZsajXoHzyC6gnPKPl2ATQd+Tkkl/GZ8uYa6b98 em5n0zNz4SuHNIxFaQr39cE+uiH8X8f6Mou/ry36EyCr2LJcfNh9vqBbkmgtlAud3t07 dfvw== X-Gm-Message-State: ALoCoQk6y+hMNE4e4eytpClAPDo+AmjZNg1Iw63I8vp+azFYR0XAdLVs0Sx/FKvc1WewkFSwrZmP X-Received: by 10.152.26.101 with SMTP id k5mr6375278lag.9.1441711199543; Tue, 08 Sep 2015 04:19:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.219.4 with SMTP id pk4ls714295lac.90.gmail; Tue, 08 Sep 2015 04:19:59 -0700 (PDT) X-Received: by 10.152.21.103 with SMTP id u7mr21319023lae.49.1441711199396; Tue, 08 Sep 2015 04:19:59 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id o1si2925762lbc.8.2015.09.08.04.19.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2015 04:19:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbcjc2 with SMTP id jc2so51203073lbc.0 for ; Tue, 08 Sep 2015 04:19:59 -0700 (PDT) X-Received: by 10.152.22.133 with SMTP id d5mr21836476laf.112.1441711198961; Tue, 08 Sep 2015 04:19:58 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp905598lbq; Tue, 8 Sep 2015 04:19:58 -0700 (PDT) X-Received: by 10.107.150.68 with SMTP id y65mr41025233iod.133.1441711197936; Tue, 08 Sep 2015 04:19:57 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yk6si4913803pab.213.2015.09.08.04.19.57; Tue, 08 Sep 2015 04:19:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753367AbbIHLT4 (ORCPT + 8 others); Tue, 8 Sep 2015 07:19:56 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:51937 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753254AbbIHLTz (ORCPT ); Tue, 8 Sep 2015 07:19:55 -0400 Received: from e105922-lin.cambridge.arm.com (e105922-lin.cambridge.arm.com [10.2.135.144]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with SMTP id t88BJjUC017785; Tue, 8 Sep 2015 12:19:45 +0100 Received: by e105922-lin.cambridge.arm.com (sSMTP sendmail emulation); Tue, 08 Sep 2015 12:21:12 +0100 From: Punit Agrawal To: edubezval@gmail.com Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Punit Agrawal , Rob Herring , Mark Rutland , Ian Campbell , Kumar Gala Subject: [PATCH 1/2] of: thermal: Fix inconsitency between cooling-*-state and cooling-*-level Date: Tue, 8 Sep 2015 12:20:48 +0100 Message-Id: <1441711249-11434-1-git-send-email-punit.agrawal@arm.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1441711013-11220-1-git-send-email-punit.agrawal@arm.com> References: <1441711013-11220-1-git-send-email-punit.agrawal@arm.com> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: punit.agrawal@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The device trees in the kernel as well as the binding description in Documentation/devicetree/bindings/cpufreq/cpufreq-dt.txt use the cooling-{min,max}-level property. Fix the inconsistency with the binding description in Documentation/devicetree/bindings/thermal/thermal.txt by changing cooling-*-state properties to cooling-*-level. Signed-off-by: Punit Agrawal Cc: Eduardo Valentin Cc: Rob Herring Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala --- Documentation/devicetree/bindings/thermal/thermal.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt index 8a49362..8320186 100644 --- a/Documentation/devicetree/bindings/thermal/thermal.txt +++ b/Documentation/devicetree/bindings/thermal/thermal.txt @@ -55,16 +55,16 @@ of heat dissipation). For example a fan's cooling states correspond to the different fan speeds possible. Cooling states are referred to by single unsigned integers, where larger numbers mean greater heat dissipation. The precise set of cooling states associated with a device -(as referred to be the cooling-min-state and cooling-max-state +(as referred to by the cooling-min-level and cooling-max-level properties) should be defined in a particular device's binding. For more examples of cooling devices, refer to the example sections below. Required properties: -- cooling-min-state: An integer indicating the smallest +- cooling-min-level: An integer indicating the smallest Type: unsigned cooling state accepted. Typically 0. Size: one cell -- cooling-max-state: An integer indicating the largest +- cooling-max-level: An integer indicating the largest Type: unsigned cooling state accepted. Size: one cell @@ -225,8 +225,8 @@ cpus { 396000 950000 198000 850000 >; - cooling-min-state = <0>; - cooling-max-state = <3>; + cooling-min-level = <0>; + cooling-max-level = <3>; #cooling-cells = <2>; /* min followed by max */ }; ... @@ -240,8 +240,8 @@ cpus { */ fan0: fan@0x48 { ... - cooling-min-state = <0>; - cooling-max-state = <9>; + cooling-min-level = <0>; + cooling-max-level = <9>; #cooling-cells = <2>; /* min followed by max */ }; };