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: 9538635 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 1EB1A604A0 for ; Thu, 26 Jan 2017 09:30:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1109F26E77 for ; Thu, 26 Jan 2017 09:30:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05D3D27F99; Thu, 26 Jan 2017 09:30:19 +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=-6.9 required=2.0 tests=BAYES_00,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 DA56328112 for ; Thu, 26 Jan 2017 09:30:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753322AbdAZJaP (ORCPT ); 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 W0z5s5zJ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JJCWWJOKZBnZIAGHJwD3IOV9O0S3DIeHN/DVPCZp+LBxl6mBsbXXF2MHBwSAiYS Uy4VdDFyApliEhfurWcDsYUEljBKPF0k0sXIBWQ3MUl8X/uXESTBJmAo0fW2iw0kISLQzCjR 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?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRs=?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRtT?= =?UTF-8?B?YW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= 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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP '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(-) 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; }