From patchwork Fri Mar 22 21:00:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 2322591 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 098F7DFE82 for ; Fri, 22 Mar 2013 21:03:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423027Ab3CVVDQ (ORCPT ); Fri, 22 Mar 2013 17:03:16 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:36163 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423063Ab3CVVDP (ORCPT ); Fri, 22 Mar 2013 17:03:15 -0400 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r2ML3EIF019725; Fri, 22 Mar 2013 16:03:14 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r2ML3EjE007151; Fri, 22 Mar 2013 16:03:14 -0500 Received: from dlelxv24.itg.ti.com (172.17.1.199) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.2.342.3; Fri, 22 Mar 2013 16:03:14 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id r2ML3EUA022246; Fri, 22 Mar 2013 16:03:14 -0500 Received: from localhost (h68-18.vpn.ti.com [172.24.68.18]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id r2ML3BV09023; Fri, 22 Mar 2013 16:03:11 -0500 (CDT) From: Eduardo Valentin To: Zhang Rui CC: , , Eduardo Valentin Subject: [PATCH 05/11] thermal: rename get_tz_trend to thermal_zone_trend_get Date: Fri, 22 Mar 2013 17:00:48 -0400 Message-ID: <1363986054-24637-6-git-send-email-eduardo.valentin@ti.com> X-Mailer: git-send-email 1.7.7.1.488.ge8e1c In-Reply-To: <1363986054-24637-1-git-send-email-eduardo.valentin@ti.com> References: <1363986054-24637-1-git-send-email-eduardo.valentin@ti.com> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org To follow the prefix names used by the thermal exported functions, this patch renames get_tz_trend to thermal_zone_trend_get. Signed-off-by: Eduardo Valentin --- Documentation/thermal/sysfs-api.txt | 2 +- drivers/thermal/step_wise.c | 2 +- drivers/thermal/thermal_sys.c | 4 ++-- include/linux/thermal.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt index 059b3bf..a9abb84 100644 --- a/Documentation/thermal/sysfs-api.txt +++ b/Documentation/thermal/sysfs-api.txt @@ -351,7 +351,7 @@ crosses any of the configured thresholds. 5. Export Symbol APIs: -5.1: get_tz_trend: +5.1: thermal_zone_trend_get: This function returns the trend of a thermal zone, i.e the rate of change of temperature of the thermal zone. Ideally, the thermal sensor drivers are supposed to implement the callback. If they don't, the thermal diff --git a/drivers/thermal/step_wise.c b/drivers/thermal/step_wise.c index 407cde3..a640e2b 100644 --- a/drivers/thermal/step_wise.c +++ b/drivers/thermal/step_wise.c @@ -116,7 +116,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) tz->ops->get_trip_type(tz, trip, &trip_type); } - trend = get_tz_trend(tz, trip); + trend = thermal_zone_trend_get(tz, trip); if (tz->temperature >= trip_temp) throttle = true; diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 44e89c0..242c82a 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c @@ -153,7 +153,7 @@ static void release_idr(struct idr *idr, struct mutex *lock, int id) mutex_unlock(lock); } -int get_tz_trend(struct thermal_zone_device *tz, int trip) +int thermal_zone_trend_get(struct thermal_zone_device *tz, int trip) { enum thermal_trend trend; @@ -168,7 +168,7 @@ int get_tz_trend(struct thermal_zone_device *tz, int trip) return trend; } -EXPORT_SYMBOL(get_tz_trend); +EXPORT_SYMBOL(thermal_zone_trend_get); struct thermal_instance *thermal_instance_get(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, int trip) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index e2a49e1..542a39c 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -238,7 +238,7 @@ struct thermal_cooling_device *thermal_cooling_device_register(char *, void *, const struct thermal_cooling_device_ops *); void thermal_cooling_device_unregister(struct thermal_cooling_device *); -int get_tz_trend(struct thermal_zone_device *, int); +int thermal_zone_trend_get(struct thermal_zone_device *, int); struct thermal_instance *thermal_instance_get(struct thermal_zone_device *, struct thermal_cooling_device *, int); void thermal_cdev_update(struct thermal_cooling_device *);