From patchwork Thu Jan 26 09:29:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92501 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp96217qgi; Thu, 26 Jan 2017 01:30:18 -0800 (PST) X-Received: by 10.99.253.5 with SMTP id d5mr1902269pgh.47.1485423017986; Thu, 26 Jan 2017 01:30:17 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 197si25983013pgd.70.2017.01.26.01.30.17; Thu, 26 Jan 2017 01:30:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753291AbdAZJaP (ORCPT + 13 others); Thu, 26 Jan 2017 04:30:15 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:23716 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753256AbdAZJaF (ORCPT ); Thu, 26 Jan 2017 04:30:05 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKD00AZYRQ13N60@mailout3.w1.samsung.com>; Thu, 26 Jan 2017 09:30:01 +0000 (GMT) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170126093001eucas1p23562f70c0f05678782f6ec12085e5ece~dSFmEYHY20736607366eucas1p2i; Thu, 26 Jan 2017 09:30:01 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 2C.63.30614.991C9885; Thu, 26 Jan 2017 09:30:01 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170126093000eucas1p2090613930c07a90f42e1b7b48584e012~dSFlVRyrN1109611096eucas1p2Q; Thu, 26 Jan 2017 09:30:00 +0000 (GMT) X-AuditID: cbfec7f1-f793f6d000007796-4e-5889c199c4d6 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DA.FC.06687.8D1C9885; Thu, 26 Jan 2017 09:31:04 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKD007J9RPVXW40@eusync3.samsung.com>; Thu, 26 Jan 2017 09:30:00 +0000 (GMT) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Bartlomiej Zolnierkiewicz Subject: [PATCH v3 REBASED 08/13] pinctrl: samsung: Remove dead code Date: Thu, 26 Jan 2017 10:29:22 +0100 Message-id: <1485422967-30643-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485422967-30643-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLIsWRmVeSWpSXmKPExsWy7djP87ozD3ZGGCx8wGmxccZ6Vovz5zew W0z5s5zJYtPja6wWm+f/YbT43HuE0WLG+X1MFmuP3GW3OPymndVi1a4/jA5cHjtn3WX32LSq k83jzrU9bB6bl9R79G1ZxejxeZNcAFsUl01Kak5mWWqRvl0CV8aD43uYCj7zVDz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W2iw0kISLQzCjR sKQXzGEWmMAkMfNTAxNIlbCAi8Sxg63sIDaLgKrE5f7rLCA2r4CHxLddR1kg1slJnDw2mRXE 5hTwlNjftI0dYvVERomjs7MnMPIuYGRYxSiSWlqcm55bbKhXnJhbXJqXrpecn7uJERjy2479 3LyD8dLG4EOMAhyMSjy8B3Z0RAixJpYVV+YeYpTgYFYS4T20rzNCiDclsbIqtSg/vqg0J7X4 EKMp0FETmaVEk/OB8ZhXEm9oYmhuaWhkbGFhbmSkJM5b8uFKuJBAemJJanZqakFqEUwfEwen VANj3Yqf2nOfv9wm8y5UR7Hh7NTyo50t9VI2fyacbbogXK7Wnq3Scf7CJn4+o1X3dtlGMuj4 JnOxdKq8yL3xf+n18uVMu4+u36psOuWmmWpXeE/i1Ta/3ngucdnv3to2rrtDvXYGK1mca9sS FpvN7nomOS4h6fvySPfeqVxZUdK/A95f59puu1mJpTgj0VCLuag4EQBOBkh3jwIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170126093000eucas1p2090613930c07a90f42e1b7b48584e012 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170126093000eucas1p2090613930c07a90f42e1b7b48584e012 X-RootMTR: 20170126093000eucas1p2090613930c07a90f42e1b7b48584e012 References: <1485422967-30643-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 'enable' parameter has been removed a while ago, so all code for handling it can be simply removed. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Acked-by: Tomasz Figa --- drivers/pinctrl/samsung/pinctrl-samsung.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index 10b3fd826231..2803ae57f373 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -350,7 +350,7 @@ static void pin_to_reg_bank(struct samsung_pinctrl_drv_data *drvdata, /* enable or disable a pinmux function */ static void samsung_pinmux_setup(struct pinctrl_dev *pctldev, unsigned selector, - unsigned group, bool enable) + unsigned group) { struct samsung_pinctrl_drv_data *drvdata; const struct samsung_pin_bank_type *type; @@ -380,8 +380,7 @@ static void samsung_pinmux_setup(struct pinctrl_dev *pctldev, unsigned selector, data = readl(reg + type->reg_offset[PINCFG_TYPE_FUNC]); data &= ~(mask << shift); - if (enable) - data |= func->val << shift; + data |= func->val << shift; writel(data, reg + type->reg_offset[PINCFG_TYPE_FUNC]); spin_unlock_irqrestore(&bank->slock, flags); @@ -392,7 +391,7 @@ static int samsung_pinmux_set_mux(struct pinctrl_dev *pctldev, unsigned selector, unsigned group) { - samsung_pinmux_setup(pctldev, selector, group, true); + samsung_pinmux_setup(pctldev, selector, group); return 0; }