From patchwork Mon Apr 16 14:22:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10343037 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A8D956039A for ; Mon, 16 Apr 2018 14:22:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9817D28795 for ; Mon, 16 Apr 2018 14:22:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C1032879A; Mon, 16 Apr 2018 14:22:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B10EA28795 for ; Mon, 16 Apr 2018 14:22:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752941AbeDPOW3 (ORCPT ); Mon, 16 Apr 2018 10:22:29 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:32886 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751940AbeDPOW2 (ORCPT ); Mon, 16 Apr 2018 10:22:28 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180416142225euoutp026f11b4b0dc81a25f34bb0c3680755ec0~l8I7jLY-12061720617euoutp02e for ; Mon, 16 Apr 2018 14:22:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180416142225euoutp026f11b4b0dc81a25f34bb0c3680755ec0~l8I7jLY-12061720617euoutp02e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523888545; bh=g1furfEAO4f5PAY4kFEDFV6UxuJoNNuFtwO/7Hznj48=; h=From:To:Cc:Subject:Date:References:From; b=Ze89X1S2jtM/mUhGKoTZP/3PYWlII4HG0aroGSNpT+TH/PK5UOwZkzPTTqm2NFHS+ U0gQ5UMMG6mPxvlj78G7vbfoRv15MUXUrgpv9x8z2SdsuVvKH8nK3LyEBqMRVbtxxB 5OwEcO2ORJjndvTpRd8iO9zPay566XrcHmfE+1TY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180416142223eucas1p23c5e128d3b379918289fb12cc1e3d731~l8I5lQI9u1633216332eucas1p2Q; Mon, 16 Apr 2018 14:22:23 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C5.7E.05700.E91B4DA5; Mon, 16 Apr 2018 15:22:22 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20180416142221eucas1p1ded332b5b69a9f3f1224914e48b28c19~l8I4Iqz9B2117321173eucas1p1_; Mon, 16 Apr 2018 14:22:21 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20180416142221eusmtrp2e6f1e4956292838b93b5fbe2b3b90e43~l8I3uEnho3265332653eusmtrp2K; Mon, 16 Apr 2018 14:22:21 +0000 (GMT) X-AuditID: cbfec7f2-1c1ff70000011644-8a-5ad4b19e3fa8 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id E0.B9.04183.D91B4DA5; Mon, 16 Apr 2018 15:22:21 +0100 (BST) Received: from amdc3058.localnet (unknown [106.120.53.102]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20180416142221eusmtip101feadcdb9b30179cbf79184b0f60493~l8I3nTU2B0769007690eusmtip1G; Mon, 16 Apr 2018 14:22:21 +0000 (GMT) From: Bartlomiej Zolnierkiewicz To: Eduardo Valentin Cc: Zhang Rui , Krzysztof Kozlowski , Kukjin Kim , Daniel Lezcano , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com Subject: [PATCH v2 12/14] thermal: exynos: remove separate exynos_tmu.h header file Date: Mon, 16 Apr 2018 16:22:19 +0200 Message-ID: <2686175.IEZVfBECIu@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHKsWRmVeSWpSXmKPExsWy7djP87rzNl6JMlj83chi44z1rBbzPsta zL9yjdWi//FrZovz5zewW1zeNYfN4nPvEUaLGef3MVk8edjH5sDpsXPWXXaPxXteMnlsWtXJ 5nHn2h42j74tqxg9Pm+SC2CL4rJJSc3JLEst0rdL4MrY3rOAseCfZMXPySdYGhifinYxcnJI CJhIXF25nrGLkYtDSGAFo8TdRf+YIZwvjBIv5r1gh3A+M0qc6/zEAtOy7dM9qKrljBL39u5j hXA+MEp0btvLBlLFJmAlMbF9FSOILSKgJXHi0nYmkCJmgQlMEk9fzQQrEhYIlXjw/g07iM0i oCqx+t5CsAZeAU2JU5f+g9miAl4SW/a1M0HEBSVOznwCdgazgLxEx+VGsM0SAsvYJW5tvMMG cZ+LxMaj65ggbGGJV8e3sEPYMhL/d85ngmhoZpT4tmMPM0RiAqPEnvVCELa1xOHjF4GmcgBt 0JRYv0sfImwr0bWnGSw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cD4zlvJJ4Q1NDcwtLQ3Njc2MzCyVx3vMGlVFCAumJJanZ qakFqUUwfUwcnFINjLsCI29wiC1Y61Rw7+QW54861Ud9wiX32b58Ldy9/5vjnfnnNvCX9hpv /zoxNunb9q3rV+054rt63mQVg7d9E63eHNsWYspZ6i6p//TL84Suj2L7/IrKbuhrp27YfHF/ 2+WOnkDN/jnThUyXdy3qqnM38/1QsfVWFMsl7fCwc0ZsZqdX9odVxyqxFGckGmoxFxUnAgDs rxIdrQIAAA== X-CMS-MailID: 20180416142221eucas1p1ded332b5b69a9f3f1224914e48b28c19 X-Msg-Generator: CA X-MTR: 20180416142221eucas1p1ded332b5b69a9f3f1224914e48b28c19 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180416142221eucas1p1ded332b5b69a9f3f1224914e48b28c19 X-RootMTR: 20180416142221eucas1p1ded332b5b69a9f3f1224914e48b28c19 References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP exynos_tmu.h is used only by exynos_tmu.c so there is no need for a separate include file. Also while at it remove no longer needed cpu_cooling.h include. There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Daniel Lezcano --- Replacement patch for v1. v2: - Remove cpu_cooling.h include (as requested by Daniel) - Add Acked-by from Daniel drivers/thermal/samsung/exynos_tmu.c | 17 +++++++++++++- drivers/thermal/samsung/exynos_tmu.h | 41 ----------------------------------- 2 files changed, 16 insertions(+), 42 deletions(-) Index: b/drivers/thermal/samsung/exynos_tmu.c =================================================================== --- a/drivers/thermal/samsung/exynos_tmu.c 2018-04-16 16:13:18.995562674 +0200 +++ b/drivers/thermal/samsung/exynos_tmu.c 2018-04-16 16:13:28.663562918 +0200 @@ -35,7 +35,8 @@ #include #include -#include "exynos_tmu.h" +#include + #include "../thermal_core.h" /* Exynos generic registers */ @@ -173,6 +174,20 @@ #define EXYNOS_NOISE_CANCEL_MODE 4 #define MCELSIUS 1000 + +enum soc_type { + SOC_ARCH_EXYNOS3250 = 1, + SOC_ARCH_EXYNOS4210, + SOC_ARCH_EXYNOS4412, + SOC_ARCH_EXYNOS5250, + SOC_ARCH_EXYNOS5260, + SOC_ARCH_EXYNOS5420, + SOC_ARCH_EXYNOS5420_TRIMINFO, + SOC_ARCH_EXYNOS5433, + SOC_ARCH_EXYNOS5440, + SOC_ARCH_EXYNOS7, +}; + /** * struct exynos_tmu_data : A structure to hold the private data of the TMU driver Index: b/drivers/thermal/samsung/exynos_tmu.h =================================================================== --- a/drivers/thermal/samsung/exynos_tmu.h 2018-04-16 16:13:18.995562674 +0200 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 @@ -1,41 +0,0 @@ -/* - * exynos_tmu.h - Samsung EXYNOS TMU (Thermal Management Unit) - * - * Copyright (C) 2011 Samsung Electronics - * Donggeun Kim - * Amit Daniel Kachhap - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef _EXYNOS_TMU_H -#define _EXYNOS_TMU_H -#include -#include - -enum soc_type { - SOC_ARCH_EXYNOS3250 = 1, - SOC_ARCH_EXYNOS4210, - SOC_ARCH_EXYNOS4412, - SOC_ARCH_EXYNOS5250, - SOC_ARCH_EXYNOS5260, - SOC_ARCH_EXYNOS5420, - SOC_ARCH_EXYNOS5420_TRIMINFO, - SOC_ARCH_EXYNOS5433, - SOC_ARCH_EXYNOS5440, - SOC_ARCH_EXYNOS7, -}; - -#endif /* _EXYNOS_TMU_H */