From patchwork Tue May 3 12:07:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9003291 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0D4349F39D for ; Tue, 3 May 2016 12:08:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B36120251 for ; Tue, 3 May 2016 12:08:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 45A74201BB for ; Tue, 3 May 2016 12:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755935AbcECMIJ (ORCPT ); Tue, 3 May 2016 08:08:09 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:36333 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755930AbcECMIG (ORCPT ); Tue, 3 May 2016 08:08:06 -0400 Received: by mail-pa0-f66.google.com with SMTP id i5so1499069pag.3; Tue, 03 May 2016 05:08:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zeAdrXyWLZfo+YEJ08bM6IXU2cXh/Q6o/hoyo7Lsviw=; b=m7EOb/ItpbzVMF4FF5pxw24IZqz71dYjeFyRUXiyYMxO8q1QwsQkv+MbpWdchQKLP5 EYKiXlTz9or3tt0YCmqAugwtxcbpEYjYI2dGRMJuo7sEDUsn8VvkRweZkm7slU8YfW7w IrFnqbKkCSYQHmK5X8e8fuKqvOznhaJUl3zMcPAfGqmvRDOqzzL49GfwvLYUadCiKUE1 b9guu9Y3eDejhCcyJWxNgJctu9jqddbhY3ZoCiwuppFLhfWK3XglSrg1JZwmCPJTYFgt 9OTCwqifezd/9rWH4SJoqxUZrJ6jH83znwOmhpFDAc5fUxGFJ2soAlm0wehrzfbQ4Qis Rl/Q== X-Gm-Message-State: AOPr4FWPB76tWyWiyoqQ2/K5eSjheXoVUV5kGQge0A+Shqtd2nCtd7SrHoV+Psa5zdvIcQ== X-Received: by 10.66.172.10 with SMTP id ay10mr2912596pac.36.1462277285922; Tue, 03 May 2016 05:08:05 -0700 (PDT) Received: from localhost.localdomain ([104.37.5.148]) by smtp.gmail.com with ESMTPSA id g5sm5541941pac.1.2016.05.03.05.07.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 May 2016 05:08:04 -0700 (PDT) From: Caesar Wang To: edubezval@gmail.com Cc: Caesar Wang , Zhang Rui , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Jiri Kosina , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] thermal: trivial: fix the typo Date: Tue, 3 May 2016 20:07:41 +0800 Message-Id: <1462277262-29935-1-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP See the thermal code, the obvious typo from my editor. Signed-off-by: Caesar Wang --- Documentation/devicetree/bindings/thermal/thermal.txt | 10 +++++----- drivers/thermal/thermal_core.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt index 41b817f..88b6ea1 100644 --- a/Documentation/devicetree/bindings/thermal/thermal.txt +++ b/Documentation/devicetree/bindings/thermal/thermal.txt @@ -62,7 +62,7 @@ For more examples of cooling devices, refer to the example sections below. Required properties: - #cooling-cells: Used to provide cooling device specific information Type: unsigned while referring to it. Must be at least 2, in order - Size: one cell to specify minimum and maximum cooling state used + Size: one cell to specify minimum and maximum cooling state used in the reference. The first cell is the minimum cooling state requested and the second cell is the maximum cooling state requested in the reference. @@ -119,7 +119,7 @@ Required properties: Optional property: - contribution: The cooling contribution to the thermal zone of the Type: unsigned referred cooling device at the referred trip point. - Size: one cell The contribution is a ratio of the sum + Size: one cell The contribution is a ratio of the sum of all cooling contributions within a thermal zone. Note: Using the THERMAL_NO_LIMIT (-1UL) constant in the cooling-device phandle @@ -145,7 +145,7 @@ Required properties: Size: one cell - thermal-sensors: A list of thermal sensor phandles and sensor specifier - Type: list of used while monitoring the thermal zone. + Type: list of used while monitoring the thermal zone. phandles + sensor specifier @@ -473,7 +473,7 @@ thermal-zones { <&adc>; /* pcb north */ /* hotspot = 100 * bandgap - 120 * adc + 484 */ - coefficients = <100 -120 484>; + coefficients = <100 -120 484>; trips { ... @@ -502,7 +502,7 @@ from the ADC sensor. The binding would be then: thermal-sensors = <&adc>; /* hotspot = 1 * adc + 6000 */ - coefficients = <1 6000>; + coefficients = <1 6000>; (d) - Board thermal diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index e5bfbd3..26870ef 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -513,7 +513,7 @@ int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) if (!ret && *temp < crit_temp) *temp = tz->emul_temperature; } - + mutex_unlock(&tz->lock); exit: return ret;