From patchwork Fri Apr 26 10:37:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 2492671 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 17BFE3FC64 for ; Fri, 26 Apr 2013 10:43:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759457Ab3DZKnl (ORCPT ); Fri, 26 Apr 2013 06:43:41 -0400 Received: from mail-pb0-f54.google.com ([209.85.160.54]:46602 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759914Ab3DZKi2 (ORCPT ); Fri, 26 Apr 2013 06:38:28 -0400 Received: by mail-pb0-f54.google.com with SMTP id jt11so1112266pbb.13 for ; Fri, 26 Apr 2013 03:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=GyFDQUz3q03yfOqRO/RxRKZx2ZzZTnR4pg+8Qa9/EjI=; b=EeIwGYkprMWi+XYGKkUGcr8apu7Wv8EJFLJ3eR7bz7GbEOUDhWhLKddsJshM/hXAvu gb05I0B2jSVMhnK0oCo+PUu4lKJXRqfOSvC7n88VepUVXtOhXw2kklwIjMOXsAixPFNz 1VSG4iAYe2sStJGuWy+WxRW1yXYnnQf/qsmhYkU+u9UHgKVgsebNjZyyJfu6QBpSQcaQ QKHkxi2uV3QN6dx1WgpY1xFgECQsVdqLq1dkyOW6DCfN5N4+7cFNVoiRZqiwOJpiJxZw KRV+VKL+EtfVxTfKkkxZXFNjDw3Z3hV9kiBXwJSLSMlfN1iat5tmjS/kEhb0C8CYBefs g42g== X-Received: by 10.68.20.138 with SMTP id n10mr58323466pbe.140.1366972706857; Fri, 26 Apr 2013 03:38:26 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id at4sm11172333pbc.40.2013.04.26.03.38.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 26 Apr 2013 03:38:25 -0700 (PDT) From: Amit Daniel Kachhap To: linux-pm@vger.kernel.org Cc: Zhang Rui , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, Kukjin Kim , Eduardo Valentin Subject: [PATCH V2 04/20] thermal: exynos: Move exynos_thermal.h from include/* to driver/* folder Date: Fri, 26 Apr 2013 16:07:35 +0530 Message-Id: <1366972671-9227-5-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1366972671-9227-1-git-send-email-amit.daniel@samsung.com> References: <1366972671-9227-1-git-send-email-amit.daniel@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This patch renames and moves include/linux/platform_data/exynos_thermal.h to drivers/thermal/samsung/exynos_tmu.h. This file movement is needed as exynos SOC's are not supporting non-DT based platforms. Also the rename is needed as this file now just contains exynos tmu driver related definations. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_thermal_common.c | 1 - drivers/thermal/samsung/exynos_thermal_common.h | 15 +++++++++++++++ drivers/thermal/samsung/exynos_tmu.c | 2 +- .../thermal/samsung/exynos_tmu.h | 15 --------------- 4 files changed, 16 insertions(+), 17 deletions(-) rename include/linux/platform_data/exynos_thermal.h => drivers/thermal/samsung/exynos_tmu.h (88%) diff --git a/drivers/thermal/samsung/exynos_thermal_common.c b/drivers/thermal/samsung/exynos_thermal_common.c index 9a57606..dae5476 100644 --- a/drivers/thermal/samsung/exynos_thermal_common.c +++ b/drivers/thermal/samsung/exynos_thermal_common.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include "exynos_thermal_common.h" diff --git a/drivers/thermal/samsung/exynos_thermal_common.h b/drivers/thermal/samsung/exynos_thermal_common.h index 165401f..985b848 100644 --- a/drivers/thermal/samsung/exynos_thermal_common.h +++ b/drivers/thermal/samsung/exynos_thermal_common.h @@ -44,6 +44,21 @@ #define EXYNOS_ZONE_COUNT 3 +/** + * struct freq_clip_table + * @freq_clip_max: maximum frequency allowed for this cooling state. + * @temp_level: Temperature level at which the temperature clipping will + * happen. + * @mask_val: cpumask of the allowed cpu's where the clipping will take place. + * + * This structure is required to be filled and passed to the + * cpufreq_cooling_unregister function. + */ +struct freq_clip_table { + unsigned int freq_clip_max; + unsigned int temp_level; + const struct cpumask *mask_val; +}; struct thermal_trip_point_conf { int trip_val[MAX_TRIP_COUNT]; int trip_count; diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 3de3e61..a02f2c9 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -30,10 +30,10 @@ #include #include #include -#include #include #include #include "exynos_thermal_common.h" +#include "exynos_tmu.h" /* Exynos generic registers */ #define EXYNOS_TMU_REG_TRIMINFO 0x0 diff --git a/include/linux/platform_data/exynos_thermal.h b/drivers/thermal/samsung/exynos_tmu.h similarity index 88% rename from include/linux/platform_data/exynos_thermal.h rename to drivers/thermal/samsung/exynos_tmu.h index da7e627..342fb1f 100644 --- a/include/linux/platform_data/exynos_thermal.h +++ b/drivers/thermal/samsung/exynos_tmu.h @@ -33,21 +33,6 @@ enum soc_type { SOC_ARCH_EXYNOS4210 = 1, SOC_ARCH_EXYNOS, }; -/** - * struct freq_clip_table - * @freq_clip_max: maximum frequency allowed for this cooling state. - * @temp_level: Temperature level at which the temperature clipping will - * happen. - * @mask_val: cpumask of the allowed cpu's where the clipping will take place. - * - * This structure is required to be filled and passed to the - * cpufreq_cooling_unregister function. - */ -struct freq_clip_table { - unsigned int freq_clip_max; - unsigned int temp_level; - const struct cpumask *mask_val; -}; /** * struct exynos_tmu_platform_data