From patchwork Fri Dec 23 12:24:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 88940 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp3296216qgi; Fri, 23 Dec 2016 04:25:31 -0800 (PST) X-Received: by 10.84.210.229 with SMTP id a92mr28959079pli.126.1482495930975; Fri, 23 Dec 2016 04:25:30 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y67si34013481pfb.71.2016.12.23.04.25.30; Fri, 23 Dec 2016 04:25:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934076AbcLWMZ3 (ORCPT + 4 others); Fri, 23 Dec 2016 07:25:29 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:55411 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932460AbcLWMZ1 (ORCPT ); Fri, 23 Dec 2016 07:25:27 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OIN024R816D5IB0@mailout2.samsung.com>; Fri, 23 Dec 2016 21:25:25 +0900 (KST) Received: from epsmges1p3.samsung.com (unknown [182.195.42.55]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20161223122525epcas1p158238332311ff34541ece873e1a60db3~S4jB7w9bb1084110841epcas1p1B; Fri, 23 Dec 2016 12:25:25 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 09.D0.03670.5B71D585; Fri, 23 Dec 2016 21:25:25 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20161223122524epcas1p4f0235bcdabe1e7bffa141e0b2e32de7f~S4jA8IKKY1538915389epcas1p4G; Fri, 23 Dec 2016 12:25:24 +0000 (GMT) X-AuditID: b6c32a37-f79116d000000e56-d0-585d17b59f74 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 22.21.28252.3B71D585; Fri, 23 Dec 2016 21:25:24 +0900 (KST) Received: from AMDC2765.digital.local ([106.116.147.25]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OIN00JTK15R7DD0@mmp2.samsung.com>; Fri, 23 Dec 2016 21:25:23 +0900 (KST) 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 , Ulf Hansson , Bartlomiej Zolnierkiewicz Subject: [PATCH 3/9] pinctrl: samsung: Remove dead code Date: Fri, 23 Dec 2016 13:24:43 +0100 Message-id: <1482495889-6201-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1482495889-6201-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMIsWRmVeSWpSXmKPExsWy7bCmge5W8dgIg7c7uC02zljPanH+/AZ2 iyl/ljNZbHp8jdVi8/w/jBafe48wWsw4v4/JYu2Ru+wWh9+0s1qs2gWUOL423IHbY+esu+we m1Z1snncubaHzWPzknqPvi2rGD0+b5ILYIvisklJz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ixZdU3dpAqNgFDia63XWBVIgLN jBINS3rBHGaBHUwSk8+uYQapEhYwl/g1cRIbiM0ioCrx/8QLsG5eAXeJH6f2s0Psk5M4eWwy K4jNKeAhsXXDK7C4EFDNhe0P2Scw8i5gZFjFKJFakFxQnJSea5iXWq5XnJhbXJqXrpecn7uJ ERwFz6R2MB7c5X6IUYCDUYmH98TZmAgh1sSy4srcQ4wSHMxKIrxThGMjhHhTEiurUovy44tK c1KLDzGaAh02kVlKNDkfGKF5JfGGJuYm5sYGFuaWliZGSuK8jbOfhQsJpCeWpGanphakFsH0 MXFwSjUwijt/NT+Q4vAqf5feHQ7Z+HN87glLlz8RUMvY+s7Qa4t4gUu4UTTD0o975lZrGbB+ Cww5ddXoTnxI7C/L1Xoab9S4mD7I8sTebmCd9Xz5Q4XpYRsEs5nmst3JXhznxvL3BMee3QwP D2Tl1XLlcx4p6NHvVXqo8E4/9McWpwirAHvtX1POn5ijxFKckWioxVxUnAgAc9Q1yJgCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161223122524epcas1p4f0235bcdabe1e7bffa141e0b2e32de7f X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 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: 101P X-HopCount: 7 X-CMS-RootMailID: 20161223122524epcas1p4f0235bcdabe1e7bffa141e0b2e32de7f X-RootMTR: 20161223122524epcas1p4f0235bcdabe1e7bffa141e0b2e32de7f References: <1482495889-6201-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 'enable' parameter has been removed a while ago, so all code for handling it can be simply removed. Signed-off-by: Marek Szyprowski --- 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-samsung-soc" 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 41e62391c33c..4d9262051ff1 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -356,7 +356,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; @@ -386,8 +386,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); @@ -398,7 +397,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; }