From patchwork Thu Sep 18 15:27:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 4932241 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C8BE79F2EC for ; Thu, 18 Sep 2014 15:34:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2A614200FF for ; Thu, 18 Sep 2014 15:35:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA5A1201FA for ; Thu, 18 Sep 2014 15:35:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932437AbaIRP3Y (ORCPT ); Thu, 18 Sep 2014 11:29:24 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:14598 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932413AbaIRP3O (ORCPT ); Thu, 18 Sep 2014 11:29:14 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NC300IHESCPFK90@mailout2.samsung.com>; Fri, 19 Sep 2014 00:29:13 +0900 (KST) X-AuditID: cbfee61b-f79f86d00000144c-c4-541afa4811fe Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 08.02.05196.84AFA145; Fri, 19 Sep 2014 00:29:13 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NC300HEYSAHGBF0@mmp1.samsung.com>; Fri, 19 Sep 2014 00:29:12 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Eduardo Valentin Cc: Zhang Rui , Amit Daniel Kachhap , Naveen Krishna Chatradhi , Lukasz Majewski , Kyungmin Park , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com Subject: [PATCH 13/33] thermal: exynos: replace threshold_falling check by Exynos SoC type one Date: Thu, 18 Sep 2014 17:27:30 +0200 Message-id: <1411054070-25757-14-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1411054070-25757-1-git-send-email-b.zolnierkie@samsung.com> References: <1411054070-25757-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDLMWRmVeSWpSXmKPExsVy+t9jAV3PX1IhBve62CwaroZYbJyxntXi 7vPDjBbzr1xjtTjb9Ibd4s3DzYwWl3fNYbP43HuE0WLG+X1MFk8e9rE5cHnsnHWX3WPxnpdM Hn1bVjF6fN4kF8ASxWWTkpqTWZZapG+XwJXR+e0yc8E17orHz3exNDC+5+xi5OSQEDCROHNo CTOELSZx4d56NhBbSGARo8T2m+ldjFxAdheTxOreRywgCTYBK4mJ7asYQWwRAS2JE5e2M4EU MQvcYpJ4fWMyUIKDQ1ggQeL3EQuQGhYBVYnHKz8ygdi8Ap4S/zrOskEsU5TofjYBzOYEijfc 2sQOsdhDom3LXeYJjLwLGBlWMYqmFiQXFCel5xrpFSfmFpfmpesl5+duYgSH2TPpHYyrGiwO MQpwMCrx8B7glQoRYk0sK67MPcQowcGsJML75yNQiDclsbIqtSg/vqg0J7X4EKM0B4uSOO/B VutAIYH0xJLU7NTUgtQimCwTB6dUA6NT2LeLHa5yutvKDxnOsbacwBxoKqNx5s/1f2G8fMe0 exb087w3e7Fh72P7pHVlNxTc39zZyxPftpTFV3ny6cqIpOMFMx7fbw1WFN+z1Gfnb59t0u+c LUx+zi0pnuq//MCc/5J7D1txqQjeu13tmDLnipu6UIXipjKt9P3smXEhb14XCWjJHFNiKc5I NNRiLipOBADpkZLBLwIAAA== 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.5 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 Replace pdata->threshold_falling check for non-zero value in exynos_tmu_initialize() by an explicit check for a SoC type (all SoC types except Exynos5440 have pdata->threshold_falling assigned to non-zero value in their struct exynos_tmu_registers instances). This is a preparation for introducing per-SoC type tmu_initialize method. There should be no functional changes caused by this patch. Cc: Naveen Krishna Chatradhi Cc: Amit Daniel Kachhap Cc: Lukasz Majewski Cc: Eduardo Valentin Cc: Zhang Rui Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Kyungmin Park --- drivers/thermal/samsung/exynos_tmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index f02e65d..641a77a 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -214,7 +214,7 @@ static int exynos_tmu_initialize(struct platform_device *pdev) pdata->trigger_levels[i]); rising_threshold &= ~(0xff << 8 * i); rising_threshold |= threshold_code << 8 * i; - if (pdata->threshold_falling) { + if (data->soc != SOC_ARCH_EXYNOS5440) { threshold_code = temp_to_code(data, pdata->trigger_levels[i] - pdata->threshold_falling);