From patchwork Mon Aug 25 07:30:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 4772951 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 34A069F3FA for ; Mon, 25 Aug 2014 07:32:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 746472012B for ; Mon, 25 Aug 2014 07:32:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B434B2012E for ; Mon, 25 Aug 2014 07:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753254AbaHYHbn (ORCPT ); Mon, 25 Aug 2014 03:31:43 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:42444 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754001AbaHYHaj (ORCPT ); Mon, 25 Aug 2014 03:30:39 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAU00LZPQ6Z5O80@mailout1.samsung.com>; Mon, 25 Aug 2014 16:30:35 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.112]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 30.55.04513.B16EAF35; Mon, 25 Aug 2014 16:30:35 +0900 (KST) X-AuditID: cbfee691-f79546d0000011a1-db-53fae61bb060 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 0F.73.04943.B16EAF35; Mon, 25 Aug 2014 16:30:35 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NAU004MMQ6WO211@mmp2.samsung.com>; Mon, 25 Aug 2014 16:30:35 +0900 (KST) From: Chanwoo Choi To: eduardo.valentin@ti.com, amit.daniel@samsung.com, rui.zhang@intel.com Cc: kgene.kim@samsung.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, galak@codeaurora.org, ch.naveen@samsung.com, kyungmin.park@samsung.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Chanwoo Choi , Eduardo Valentin Subject: [PATCHv4 4/4] thermal: exynos: Remove duplicate code when reading triminfo register of Exynos5440 Date: Mon, 25 Aug 2014 16:30:25 +0900 Message-id: <1408951825-2639-5-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1408951825-2639-1-git-send-email-cw00.choi@samsung.com> References: <1408951825-2639-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHIsWRmVeSWpSXmKPExsWyRsSkQFf62a9gg+8HlCwaroZY3H1+mNHi +pfnrBbzj5xjtViz/yeTxfwr11gt+t8sZLXoXXCVzeJs0xt2i02PgWKXd81hs/jce4TRYsb5 fUwWS69fZLKYMH0ti0Xr3iPsFk8e9rE5CHqsmbeG0eNyXy+Tx85Zd9k9Fu95yeSxaVUnm8fm JfUefVtWMXocv7GdyePzJrkAzigum5TUnMyy1CJ9uwSujMWTb7AUXOKsWL5qM0sD4x/2LkYO DgkBE4ndTRxdjJxAppjEhXvr2UBsIYGljBIv+1Qg4iYSTbtfMHcxcgHFpzNKfJz+gg3CaWKS OPbwCztIFZuAlsT+FzfAuk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cR0FAODk4BV4mzi+xAwkJAJX+nrWGewMi7gJFhFaNoakFy QXFSeq6hXnFibnFpXrpecn7uJkZwPD+T2sG4ssHiEKMAB6MSD+9Kzl/BQqyJZcWVuYcYJTiY lUR4pxwHCvGmJFZWpRblxxeV5qQWH2I0BTpqIrOUaHI+MNXklcQbGpuYGVkamRtaGBmbK4nz Hmi1DhQSSE8sSc1OTS1ILYLpY+LglGpgnLjtA9M0g5NfdWbdmaYfv8d0ZcPDayXhYZPmbZB+ 0sDZ/r0lf8+pZdYTDk1MeHvvnuyjNYq/Ngdc3b8tokl+v8tz7qDiz07JlatDj+VEmD91v8qR vzB2ipiKmY91Uaxna8lO9x6bkIx+iyCxpWod2wIdJnxpX/7S78Yek78bP1fOZ/i6J/ySixJL cUaioRZzUXEiALf1WnH9AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.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 This patch remove simply duplicate code when reading triminfo register of Exynos5440. Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park Cc: Zhang Rui Cc: Eduardo Valentin Cc: Amit Daniel Kachhap Reviewed-by: Amit Daniel Kachhap --- drivers/thermal/samsung/exynos_tmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 7234f38..caeb445 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -195,15 +195,13 @@ static int exynos_tmu_initialize(struct platform_device *pdev) */ switch (data->id) { case 0: + case 2: trim_info = readl(data->base + EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); break; case 1: trim_info = readl(data->base + reg->triminfo_data); break; - case 2: - trim_info = readl(data->base - - EXYNOS5440_EFUSE_SWAP_OFFSET + reg->triminfo_data); } } else { /* On exynos5420 the triminfo register is in the shared space */